useInputContainer
@astryxdesign/core v0.7.1 · useInputContainer
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
options | UseInputContainerOptions | — | Configuration object for the input container. Required. |
options.containerRef | Ref<HTMLElement | null> | — | Ref to the outer container/wrapper element. Required. |
options.inputRef | Ref<HTMLElement | null> | — | Ref to the inner input, textarea, or other focusable control. Required. |
options.disabled | boolean | MaybeRefOrGetter<boolean> | false | Whether the input is disabled. Read again on every event. |
Returns
| Name | Type | Description |
|---|---|---|
onClick | (event: MouseEvent) => void | Click handler to attach to the container wrapper. |
onMouseUp | (event: MouseEvent) => void | Mouse up handler to attach to the container wrapper. |