Text Field
Native Solid 2 fork. Original documentation and designs © WorkOS; historical posts retain their original context.
API Reference
Root
Groups Slot and Input parts. This component is based on the div element and supports common margin props.
Slot
Contains icons or buttons associated with an Input.
Examples
Size
Use the size prop to control the size.
Use matching component sizes when composing Text Field with buttons. However, don’t use size 1 inputs with buttons—at this size, there is not enough vertical space to nest other interactive elements.
Variant
Use the variant prop to control the visual style.
Color
Use the color prop to assign a specific color.
Radius
Use the radius prop to assign a specific radius value.