Skip to content

InsetOptions

Defined in: components/field.ts:40

Options for a field that can carry content inside its control box — an icon against the leading edge, a button against the trailing one. Added by import(”./textline”).textline and import(”./textarea”).textarea.

optional prefix?: Slot

Defined in: components/field.ts:46

Content drawn inside the control, against its leading edge — typically a unit, a currency sign or a search glyph. The control’s text is indented to keep clear of it, however wide it turns out to be.


optional suffix?: Slot

Defined in: components/field.ts:53

Content drawn inside the control, against its trailing edge: a send button on a chat box, a clear or reveal button, a character count. Sits against the bottom on a (growing) textarea, and vertically centred on a single-line input.