allowPinchZoom
説明
Handle zoom or pinch gestures on iOS devices when scroll locking is enabled.
タイプ
booleanデフォルト
false.Yamada UIにスターをあげる
スターDrawerは、画面の端から表示されるパネルのコンポーネントです。
説明
Handle zoom or pinch gestures on iOS devices when scroll locking is enabled.
タイプ
booleanデフォルト
false.説明
The HTML element to render.
タイプ
keyof IntrinsicElements説明
Props for the blank area when closeOnDrag is true.
タイプ
CSSUIObject説明
If true, scrolling will be disabled on the body when the modal opens.
タイプ
booleanデフォルト
true説明
If true, then the drawer will close on drag.
タイプ
booleanデフォルト
false説明
If true, the modal will close when the Esc key is pressed.
タイプ
booleanデフォルト
true説明
If true, the modal will close when the overlay is clicked.
タイプ
booleanデフォルト
true説明
The visual color appearance of the component.
タイプ
"blackAlpha" | "whiteAlpha" | "amber" | "blue" | "info" | "link" | "primary" | "cyan" | "emerald" | "flashy" | "fuchsia" | "gray" | "green" | "success" | "indigo" | "lime" | "neutral" | "orange" | "warning" | "pink" | "purple" | "red" | "danger" | "rose" | "sky" | "teal" | "violet" | "secondary" | "yellow"説明
Props for modal container element.
タイプ
HTMLUIProps説明
Applies constraints on the permitted draggable area.
タイプ
numberデフォルト
0説明
The degree of movement allowed outside constraints. 0 = no movement, 1 = full movement.
タイプ
numberデフォルト
0.1説明
Offset from being dragged to closing.
タイプ
numberデフォルト
80説明
Velocity of the drag that triggers close.
タイプ
numberデフォルト
100説明
The animation duration.
タイプ
number | MotionLifecycleProps<number>説明
ref of the element to return focus to when FocusLock unmounts.
タイプ
RefObject<FocusableElement>説明
If true and drawer's placement is top or bottom, the drawer will occupy the viewport height (100dvh).
タイプ
boolean説明
ref of the element to receive focus initially.
タイプ
RefObject<FocusableElement>説明
If true and drawer's placement is top or bottom, the drawer will occupy the viewport height (100dvh).
非推奨
Use fullHeight instead.
タイプ
boolean説明
If true, the open will be opened.
非推奨
Use open instead.
タイプ
boolean説明
Enables aggressive focus capturing within iframes.
- If true: keep focus in the lock, no matter where lock is active.
- If false: allows focus to move outside of iframe.
タイプ
booleanデフォルト
false説明
Callback invoked to close the modal.
タイプ
() => void説明
Callback function to run side effects after the modal has closed.
タイプ
() => void説明
Callback fired when the escape key is pressed and focus is within modal.
タイプ
() => void説明
Callback fired when the overlay is clicked.
タイプ
() => void説明
If true, the open will be opened.
タイプ
boolean説明
The placement of the drawer.
タイプ
UIValue<"bottom" | "left" | "right" | "top">デフォルト
'right'説明
Props to be forwarded to the portal component.
タイプ
Omit<PortalProps, "children">説明
If true, focus will be restored to the element that triggered the FocusLock once it unmounts.
タイプ
booleanデフォルト
false説明
The size of the Drawer.
タイプ
"xs" | "sm" | "md" | "lg" | "xl" | "full"デフォルト
"md"説明
The variant of the Drawer.
タイプ
string説明
If true, display the modal close button.
タイプ
booleanデフォルト
true説明
If true, display the drag bar when closeOnDrag is true.
タイプ
booleanデフォルト
true説明
If true, display the modal overlay.
タイプ
booleanデフォルト
true説明
The HTML element to render.
タイプ
keyof IntrinsicElements説明
If true, disable ripple effects when pressing a element.
タイプ
booleanデフォルト
false説明
If true, the button is full rounded.
タイプ
booleanデフォルト
false説明
If true, the button is disabled.
非推奨
Use disabled instead.
タイプ
booleanデフォルト
false説明
If true, the button is full rounded.
非推奨
Use fullRounded instead.
タイプ
booleanデフォルト
falseGitHubでこのページを編集する