MCPcopy Create free account
hub / github.com/Innei/Pastel / ButtonProps

Interface ButtonProps

docs/src/components/Examples/ButtonExamples.tsx:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19import { cn } from '../../utils/cn'
20
21interface ButtonProps {
22 [key: string]: any
23 children: React.ReactNode
24 className?: string
25 disabled?: boolean
26 icon?: 'left' | 'right'
27 iconElement?: React.ReactNode
28 loading?: boolean
29 size?: 'sm' | 'md' | 'lg'
30 variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive'
31}
32
33function Button({
34 variant = 'primary',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected