DocsComponentsTemplatesThemesGitHub

Sign in

Email and password form.

Install

npx shadcn@latest add https://design.fruitlabs.online/r/template-sign-in.json

Code

import { Button, Card, Checkbox, PasswordField, Stack, TextField } from '@fruit-labs/design';

export default function Template() {
  return (
    <div style={{ maxWidth: 380, margin: '0 auto' }}>
      <Card title="Welcome back" subtitle="Sign in to your workspace">
        <form onSubmit={(e) => e.preventDefault()}>
          <Stack gap={4}>
            <TextField label="Work email" type="email" icon="mail" placeholder="name@company.com" />
            <PasswordField label="Password" autoComplete="current-password" />
            <Checkbox>Keep me signed in</Checkbox>
            <Button type="submit" block>Sign in</Button>
          </Stack>
        </form>
      </Card>
    </div>
  );
}