Seed Bible extension API (v1.19.0) / seed-bible/components / Unexported types / TextInputCommonProps
Type Alias: TextInputCommonProps
type TextInputCommonProps = {
class?: string;
className?: string;
invalid?: boolean;
onValueInput?: (value: string) => void;
size?: TextInputSize;
value?: string;
};Properties
class?
class?: string;className?
className?: string;Extra classes, for placement. class and className both work.
invalid?
invalid?: boolean;Draws the box in the danger color and tells screen readers the value is wrong.
onValueInput?
onValueInput?: (value: string) => void;Called with the box's text each time it changes (every keystroke, paste or cut).
Parameters
| Parameter | Type |
|---|---|
value | string |
Returns
void
size?
size?: TextInputSize;md (the default) for forms; sm for a box inside a row or a toolbar.
value?
value?: string;