- Name
destroy- Kind
- method
- Type
() => void- Requirement
- required
DocsAPI referenceHeadlessautosize
autosize headless API
The core connector and vanilla mount are always visible. Use the framework choice to inspect native composition, props, outputs, context and hooks for the selected adapter.
3 of 3
@grassroot/ui-headless-core/autosize
Core connector and vanilla API
AutosizeController
interfaceAutosizeControllerts
interface AutosizeController { sync(): void; destroy(): void;}Name
Kind
Type
Requirement
destroymethod
() => voidrequired
syncmethod
() => voidrequired
- Name
sync- Kind
- method
- Type
() => void- Requirement
- required
AutosizeOptions
interfaceAutosizeOptionsts
interface AutosizeOptions { readonly maxHeight?: number; readonly minHeight?: number;}Name
Kind
Type
Requirement
maxHeightproperty
numberoptional
minHeightproperty
numberoptional
- Name
maxHeight- Kind
- property
- Type
number- Requirement
- optional
- Name
minHeight- Kind
- property
- Type
number- Requirement
- optional
createAutosizeController
functioncreateAutosizeControllerts
declare function createAutosizeController(element: HTMLTextAreaElement, options?: AutosizeOptions): AutosizeController;Name
Kind
Type
Requirement
elementparameter
HTMLTextAreaElementrequired
optionsparameter
AutosizeOptionsoptional
returnreturn value
AutosizeControllern/a
- Name
element- Kind
- parameter
- Type
HTMLTextAreaElement- Requirement
- required
- Name
options- Kind
- parameter
- Type
AutosizeOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
AutosizeController- Requirement
- n/a
Framework adapters
Each panel keeps its adapter's public vocabulary. React compound exports, Vue composables, standalone Angular declarations, Svelte components, and Solid hooks stay native to their framework.
This entry is core-only. No framework adapter package ships for autosize yet — mount it through the vanilla API above.