felipemenezes098

One Clipboard

Buttons 3

About

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds One Clipboard to your project and fits it to your theme.

Code

How One Clipboard is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

'use client'

import { useState } from 'react'
import { CheckIcon, CopyIcon } from 'lucide-react'

import { Button } from '@/components/ui/button'
import { ButtonGroup, ButtonGroupText } from '@/components/ui/button-group'

export function Button23() {
  const [copied, setCopied] = useState(false)
  const value = 'ui.flexnative.com'

  function handleCopy() {
    navigator.clipboard.writeText(value)
    setCopied(true)
    setTimeout(() => setCopied(false), 1500)
  }

  return (
    <ButtonGroup>
      <ButtonGroupText className="font-mono">{value}</ButtonGroupText>
      <Button
        variant="outline"
        size="icon"
        onClick={handleCopy}
        aria-label="Copy token"
      >
        {copied ? <CheckIcon size={12} strokeWidth={2}className="text-emerald-500" /> : <CopyIcon size={16} strokeWidth={2}  />}
      </Button>
    </ButtonGroup>
  )
}

export default Button23

Dependencies

More by felipemenezes098

View all
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    978
  • Editorial Collage Hero

    Editorial Collage Hero

    460
  • Split Hero With Image Cards

    Split Hero With Image Cards

    417
  • Editorial Image Hero

    Editorial Image Hero

    394
  • Scroll 01

    Scroll 01

    368
  • Real Estate Search Hero

    Real Estate Search Hero

    198
  • Editorial Hero

    Editorial Hero

    181
  • Hero with Dashboard Mockup

    Hero with Dashboard Mockup

    128

More in Buttons

View all
  • Texture Button

    Texture Button

    98
  • Button

    Button

    1
  • Button

    Button

    68
  • Button

    Button

    65
  • Eclipse Button

    Eclipse Button

    3
  • Base Button

    Base Button

    4
  • HeroUI Button Group

    HeroUI Button Group

    2
  • App Store Button

    App Store Button

    460