ButtonGroup
ボタンをグループ化して表示するコンポーネント。
インポート
基本的な使い方
Loading...
方向
水平方向(デフォルト)
Loading...
垂直方向
Loading...
テキスト付きボタングループ
Loading...
セパレーター付き
Loading...
実際の使用例
ツールバー
Loading...
表示切り替え
Loading...
ページネーション
Loading...
Props
ButtonGroup
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | ボタングループの方向 |
ButtonGroupText
| Prop | Type | Default | Description |
|---|---|---|---|
size | 'xs' | 'sm' | 'default' | 'lg' | 'default' | テキストのサイズ |
asChild | boolean | false | 子要素をコンポーネントとして使用 |
ButtonGroupSeparator
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'vertical' | セパレーターの方向 |
decorative | boolean | true | 装飾目的かどうか |