Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.5.1

Resizable

Resizableは、キーボードのサポートを備えたサイズ変更可能なレイアウトコンポーネントです。

ソース@yamada-ui/resizable

Props

ResizableProps

colorScheme

説明

The visual color appearance of the component.

タイプ

"whiteAlpha" | "blackAlpha" | "gray" | "neutral" | "red" | "danger" | "rose" | "pink" | "flashy" | "orange" | "warning" | "amber" | "yellow" | "lime" | "green" | "success" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "primary" | "info" | "link" | "indigo" | "violet" | "secondary" | "purple" | "fuchsia"

デフォルト

gray

containerRef

説明

Ref for resizable container element.

タイプ

type ONLY_FOR_FORMAT = | ((instance: HTMLDivElement | null) => void) | MutableRefObject<HTMLDivElement | null>

direction

説明

The direction of the resizable.

タイプ

"horizontal" | "vertical"

デフォルト

horizontal

groupProps

説明

Props for resizable component.

タイプ

ResizableGroupProps

isDisabled

説明

If true, the resizable trigger will be disabled.

タイプ

boolean

keyboardStep

説明

Unit to resize by keyboard operation.

タイプ

number

デフォルト

10

onLayout

説明

The callback invoked when resizable items are resized.

タイプ

PanelGroupOnLayout

size

説明

The size of the Resizable.

タイプ

string

storage

説明

A callback that gets and sets a value in custom storage.

タイプ

PanelGroupStorage

storageKey

説明

Key of value saved in storage. By default, it is saved to local storage.

タイプ

string

variant

説明

The variant of the Resizable.

タイプ

"border" | "spacer" | "unstyled"

デフォルト

border

ResizableItemProps

as

タイプ

keyof HTMLElementTagNameMap

collapsedSize

説明

The collapsed size of the resizable item.

タイプ

number

collapsible

説明

If true, the resizable item can be collapsed.

タイプ

boolean

デフォルト

false

containerProps

説明

Props for resizable item container element.

タイプ

Omit<HTMLUIProps<"div">, "as"> & Omit<PanelProps, "id" | "children" | "tagName"> & As

controlRef

説明

Ref of the resizable item callback.

タイプ

RefObject<ImperativePanelHandle>

defaultSize

説明

The initial size of the resizable item.

タイプ

number

id

説明

id assigned to resizable item element.

タイプ

string

innerRef

説明

Ref for resizable item inner element.

タイプ

type ONLY_FOR_FORMAT = | ((instance: HTMLDivElement | null) => void) | MutableRefObject<HTMLDivElement | null>

maxSize

説明

The maximum allowed value of the resizable item.

タイプ

number

minSize

説明

The minimum allowed value of the resizable item.

タイプ

number

onCollapse

説明

The callback invoked when resizable item are collapsed.

タイプ

() => void

onExpand

説明

The callback invoked when resizable item are expanded.

タイプ

() => void

onResize

説明

The callback invoked when resizable item are resized.

タイプ

(size: number, prevSize: number | undefined) => void

order

説明

Order for the resizable item.

タイプ

number

ResizableTriggerProps

as

タイプ

keyof HTMLElementTagNameMap

icon

説明

The resizable trigger icon to use.

タイプ

ReactElement<any, string | JSXElementConstructor<any>>

iconProps

説明

Props for resizable trigger icon component.

タイプ

HTMLUIProps<"div">

isDisabled

説明

If true, the resizable trigger will be disabled.

タイプ

boolean

デフォルト

false

ResizableTriggerIconProps

size

非推奨

説明

The CSS font-size property.

非推奨

Use fontSize instead.

タイプ

UIValue<number | (string & {}) | "small" | "inherit" | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "sm" | "md" | "lg" | "xl" | "2xl" | "2xs" | "xs" | "3xl" | "4xl" | ... 13 more ... | "smaller">

GitHubでこのページを編集する

ReorderDockable