Carregando…
Carregando…
Carregando…Horizontal or vertical set of buttons with optional attached (joined) styling.
$ npx kikitocn add button-groupimport { ButtonGroup } from "@/components/ui/cn/button-group/ButtonGroup";
export function ButtonGroupExample() {
return (
<ButtonGroup orientation="horizontal">
Button Group
</ButtonGroup>
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
children* | React.ReactNode | — | Botões filhos |
orientation | 'horizontal' | 'vertical' | 'horizontal' | Orientação do grupo |
attached | boolean | true | Unir bordas entre botões adjacentes |
aria-label | string | — | Nome acessível do grupo (role=group) |
className | string | — | Classes CSS extras |
style | React.CSSProperties | — | Estilos inline extras |
Horizontal
Vertical
attached={false}
Dual Action Button — salvar (assíncrono) + explorar site (link)