DocsComponentsTemplatesThemesGitHub

Onboarding

A step in a setup flow.

Install

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

Code

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

export default function Template() {
  return (
    <div style={{ maxWidth: 480, margin: '0 auto' }}>
      <Stack gap={4}>
        <Steps steps={['Account', 'Workspace', 'Invite']} current={1} />
        <Card title="Name your workspace" subtitle="You can change this later.">
          <form onSubmit={(e) => e.preventDefault()}>
            <Stack gap={4}>
              <TextField label="Workspace name" placeholder="Acme Inc." />
              <RadioGroup label="Team size" options={['Just me', '2 to 10', 'More than 10']} defaultValue="2 to 10" />
              <Button type="submit" block>Continue</Button>
            </Stack>
          </form>
        </Card>
      </Stack>
    </div>
  );
}