Sign In
Compact account form with labels, descriptions, actions, and remembered state.
examples/form-field-sign-in.tsx
1import { IconKey, IconMail } from "@tabler/icons-react";2import { Button } from "@/components/wensity/button";3import { Checkbox } from "@/components/wensity/checkbox";4import {5 FormActions,6 FormField,7 FormFieldControl,8} from "@/components/wensity/form-field";9import { Input } from "@/components/wensity/input";1011export function SignInForm() {12 return (13 <div className="space-y-4">14 <FormField label="Email" required>15 <FormFieldControl asChild>16 <Input17 type="email"18 autoComplete="email"19 placeholder="you@company.com"20 leftIcon={<IconMail stroke={1.75} />}21 />22 </FormFieldControl>23 </FormField>24 <FormField label="Password" description="Use at least 12 characters." required>25 <FormFieldControl asChild>26 <Input27 type="password"28 autoComplete="current-password"29 placeholder="Enter password"30 leftIcon={<IconKey stroke={1.75} />}31 />32 </FormFieldControl>33 </FormField>34 <FormActions align="between">35 <Checkbox label="Remember device" defaultChecked fullWidth={false} />36 <Button size="sm">Continue</Button>37 </FormActions>38 </div>39 );40}