Skip to main content

Variable: Button

@arolariu/components


@arolariu/components / Button

Variable: Button

const Button: ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & RefAttributes<HTMLButtonElement>>

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

A button component that triggers actions. Built with Base UI's canonical useRender + mergeProps composition pattern.

Remarks

Renders a native <button> by default. Use the render prop to compose the button styles and shared behavior with other elements or components. The deprecated asChild prop is still supported and internally converted to render for backward compatibility.

Example

<Button variant="default" size="sm">Click me</Button>
<Button render={<a href="/dashboard" />}>Go to dashboard</Button>

See

Base UI Button

// was this page useful?