Components
Single-line text input taking a name and optional onChange, in controlled or uncontrolled mode. Supports prefix/suffix affixes, start/end slots for badges and inline actions, multiline selected values, start/end icons, four sizes, a rounded shape, faded and headless variants, error and disabled states, and FormControl integration.
npx @21st-dev/cli add reshaped/reshaped-text-fieldLoading preview...
import { Badge, Button, Reshaped, View } from "reshaped/bundle";
import TextField from "@/components/ui/reshaped-text-field";
export default function Demo() {
return (
<Reshaped theme="slate">
<div style={{ maxWidth: 360, width: "100%", margin: "0 auto", padding: 24 }}>
<View gap={3}>
<TextField startSlot={<Badge size="small">Breakfast</Badge>} name="name" />
<TextField
name="email"
endSlotPadding={1}
endSlot={
<Button size="small" color="primary">
Submit
</Button>
}
/>
</View>
</div>
</Reshaped>
);
}
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...