Interface: ButtonProps
@arolariu/components / ButtonProps
Interface: ButtonProps
Defined in: components/ui/button.tsx:47
Props for the shared button component.
Extends
Omit<React.ComponentPropsWithRef<"button">,"children"|"className"|"disabled">
Properties
variant?
optionalvariant?:ButtonVariant
Defined in: components/ui/button.tsx:52
Visual style variant.
Default
"default"
size?
optionalsize?:ButtonSize
Defined in: components/ui/button.tsx:57
Size preset.
Default
"default"
disabled?
optionaldisabled?:boolean
Defined in: components/ui/button.tsx:62
Whether the button should ignore user interaction.
Default
false
className?
optionalclassName?:string
Defined in: components/ui/button.tsx:67
Additional CSS classes merged with the button styles.
Default
undefined
render?
optionalrender?:RenderProp<ButtonState>
Defined in: components/ui/button.tsx:72
Custom element or render callback used to replace the default <button>.
Default
undefined
asChild?
optionalasChild?:boolean
Defined in: components/ui/button.tsx:78
Backward-compatible child-slot API.
Converts the single child element to the render prop internally.
Default
false
children?
optionalchildren?:ReactNode
Defined in: components/ui/button.tsx:83
Button contents when render is not provided.
Default
undefined