Demo
1
2
3<TextField label="Example">
<Bulb slot="icon-label"/>
</TextField>import { TextField } from "@dapper-ui/core";1
2
3<TextField label="Example">
<Bulb slot="icon-label"/>
</TextField>stringAutogenerated random IDstring | undefinedundefinedstring | undefinedundefined'text' | 'password' | 'number''text'string | undefinedundefinedstring | undefinedundefinedbooleanfalsebooleanfalsebooleanfalsestring | numberEmpty stringstringNonebooleanfalsebooleanfalseWhen set to true, automatically focuses the element when the component is mounted.
This is useful for usability and accessibility reasons, for example to focus an element when a modal is opened.
string | undefinedundefinedWhen set to true, automatically focuses the element when the component is mounted.
This is useful for usability and accessibility reasons, for example to focus an element when a modal is opened.
'sm' | 'base' | undefined'base'When set to true, automatically focuses the element when the component is mounted.
This is useful for usability and accessibility reasons, for example to focus an element when a modal is opened.
Radius | undefinedundefinedWhen set to true, automatically focuses the element when the component is mounted.
This is useful for usability and accessibility reasons, for example to focus an element when a modal is opened.
booleanfalseWhen set to true, automatically focuses the element when the component is mounted.
This is useful for usability and accessibility reasons, for example to focus an element when a modal is opened.
number | undefinedundefinedFor number type
number | undefinedundefinedFor number type
number | undefinedundefinedFor number type
???(v) => vFor number type
stringEmpty stringAdditional CSS classes to add to the label.
string | undefinedundefinedCustom CSS styles to apply.
Especially useful for positioning styles like margings.