API reference
components/resize-handle
Import
Section titled “Import”import * as api from "@fungi.computer/caps/components/resize-handle";Exports
Section titled “Exports”| Kind | Export | Description |
|---|---|---|
| type alias | ResizeHandleProps | Accessible grip presentation with caller-owned resize state and pointer gesture. |
| constant | ResizeHandle | Visual and keyboard surface for a caller-owned resize gesture. |
ResizeHandlePropstype alias
Section titled “ResizeHandleProps”type ResizeHandleProps = Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & object;Accessible grip presentation with caller-owned resize state and pointer gesture.
Type Declaration
Section titled “Type Declaration”| Name | Type | Description |
|---|---|---|
aria-label |
string |
- |
orientation |
"horizontal" | "vertical" |
- |
variant? |
"grip" | "notch" |
- |
value |
number |
- |
min |
number |
- |
max |
number |
- |
onValueChange() |
(value) => void |
Receives a clamped pixel position from keyboard controls. |
ResizeHandleconstant
Section titled “ResizeHandle”const ResizeHandle: ForwardRefExoticComponent< Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & object & RefAttributes<HTMLDivElement>>;Visual and keyboard surface for a caller-owned resize gesture.