Popover
ポップオーバーコンポーネント。
インポート
基本的な使い方
Loading...
シンプルな例
Loading...
パディングサイズ
padding propでパディングサイズを調整できます。
Loading...
Props
Popover
| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | - | 開閉状態(制御コンポーネント) |
onOpenChange | (open: boolean) => void | - | 開閉変更時のコールバック |
PopoverContent
| Prop | Type | Default | Description |
|---|---|---|---|
padding | 'none' | 'sm' | 'md' | 'lg' | 'md' | パディングサイズ(none: 0, sm: 8px, md: 16px, lg: 24px) |
side | 'top' | 'right' | 'bottom' | 'left' | 'bottom' | 表示位置 |
align | 'start' | 'center' | 'end' | 'center' | 配置 |