button
Documentation / ui/button
ButtonProps
Defined in: app/components/ui/button.tsx:36
Extends
ButtonHTMLAttributes
<HTMLButtonElement
>.VariantProps
<typeofbuttonVariants
>
Properties
Property | Type | Inherited from | Defined in |
---|---|---|---|
| ‐ | app/components/ui/button.tsx:39 | |
|
| app/components/ui/button.tsx:22 | |
|
| app/components/ui/button.tsx:11 |
Button
const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
Defined in: app/components/ui/button.tsx:42
buttonVariants()
const buttonVariants: (props?: ConfigVariants<{
size: {
default: string;
icon: string;
lg: string;
sm: string;
};
variant: {
default: string;
destructive: string;
ghost: string;
link: string;
outline: string;
secondary: string;
};
}> & ClassProp) => string;
Defined in: app/components/ui/button.tsx:7
Parameters
Parameter | Type |
---|---|
|
|
Returns
string