Skip to main content

Interface: ButtonProps

@arolariu/components


@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?

optional variant?: ButtonVariant

Defined in: components/ui/button.tsx:52

Visual style variant.

Default

"default"

size?

optional size?: ButtonSize

Defined in: components/ui/button.tsx:57

Size preset.

Default

"default"

disabled?

optional disabled?: boolean

Defined in: components/ui/button.tsx:62

Whether the button should ignore user interaction.

Default

false

className?

optional className?: string

Defined in: components/ui/button.tsx:67

Additional CSS classes merged with the button styles.

Default

undefined

render?

optional render?: RenderProp<ButtonState>

Defined in: components/ui/button.tsx:72

Custom element or render callback used to replace the default <button>.

Default

undefined

asChild?

optional asChild?: 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?

optional children?: ReactNode

Defined in: components/ui/button.tsx:83

Button contents when render is not provided.

Default

undefined
// was this page useful?