Skip to content

Button

Button components to render button.

Example

import { UiButton } from '@altdot/extension';
export default function Command() {
return (
<UiButton>Hello world</UiButton>
);
}

Props

NameTypeDescription
variant'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link'The button’s variant. Default to default
size'default' | 'sm' | 'lg' | 'icon' | 'icon-sm'The button’s size. Default to default