TextField

An input field users can type in.

Examples

import { TextField } from "@styple/design-system";
<Flex css={{ flexDirection: "column", gap: "$md" }} >
<TextField placeholder="Default textfield" />
<TextField size="lg" placeholder="Large textfield" />
<TextField size="lg" placeholder="Disabled textfield" disabled />
<TextField size="lg" placeholder="Ghost textfield" variant="ghost" />
<TextField size="lg" placeholder="Invalid textfield" state="invalid" />
<TextField size="lg" placeholder="Valid textfield" state="valid" />
</Flex>

API Reference

TextField

A styled component. With Props:

Prop Type Default Explanation
size"sm" | "lg""sm"

Size variant.

variant?"ghost"-

Main variant.

state?"valid" | "invalid"-

State variant.