Form with Package Selection
blocks/form-layout-04FreeBlock
A form with package selection block.
Install it
npx shadcn@latest add https://blocks.so/r/form-layout-04.jsonSource
1'use client';23import { useState } from 'react';4import { Button } from '@/components/ui/button';5import { Field, FieldDescription, FieldLabel } from '@/components/ui/field';6import { Input } from '@/components/ui/input';7import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group';8import {9 Select,10 SelectContent,11 SelectItem,12 SelectTrigger,13 SelectValue,14} from '@/components/ui/select';15import { Separator } from '@/components/ui/separator';1617const workspaces = [18 {19 id: 1,20 title: 'Starter',21 description: 'Up to 10,000 requests per day.',22 users: 'Free',23 },24 {25 id: 2,26 title: 'Premium',27 description: '500,000 requests per day¹',28 users: '$900/month²',29 },30 {31 id: 3,32 title: 'Enterprise',33 description: 'Based on your specific needs',34 users: 'Custom',35 },36];3738export default function FormLayout04() {39 const [selectedWorkspace, setSelectedWorkspace] = useState(workspaces[0]);4041 return (42 <div className="flex items-center justify-center p-10">43 <div className="sm:mx-auto sm:max-w-2xl">44 <h3 className="text-balance font-semibold text-foreground text-lg">45 Apply for early access46 </h3>47 <p className="mt-1 text-pretty text-muted-foreground text-sm leading-6">48 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam49 nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.50 </p>51 <form action="#" className="mt-8" method="post">52 <div className="grid grid-cols-1 gap-4 sm:grid-cols-6">53 <div className="col-span-full sm:col-span-3">54 <Field className="gap-2">55 <FieldLabel htmlFor="first-name">56 First name<span className="text-red-500">*</span>57 </FieldLabel>58 <Input59 autoComplete="given-name"60 id="first-name"61 name="first-name"62 placeholder="Emma"63 required64 type="text"65 />66 </Field>67 </div>68 <div className="col-span-full sm:col-span-3">69 <Field className="gap-2">70 <FieldLabel htmlFor="last-name">Last name</FieldLabel>71 <Input72 autoComplete="family-name"73 id="last-name"74 name="last-name"75 placeholder="Crown"76 type="text"77 />78// … truncated
What it pulls in
Other registry items
Files it writes
More from blocks
All 76 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| AI Chat with Voice Inputai-01 | blocks | Blocks | Free | 1 dep | |
| AI Chat with Model Selectionai-02 | blocks | Blocks | Free | 1 dep | |
| AI Chat Compact Interfaceai-03 | blocks | Blocks | Free | 1 dep | |
| AI Chat with File Attachmentsai-04 | blocks | Blocks | Free | 1 dep | |
| AI Elements Chatai-05 | blocks | Blocks | Free | 2 deps | |
| Command Menu with Groupscommand-menu-01 | blocks | Blocks | Free | 1 dep | |
| Command Menu with Keyboard Shortcutscommand-menu-02 | blocks | Blocks | Free | 1 dep | |
| Command Menu with Documentation Searchcommand-menu-03 | blocks | Blocks | Free | 1 dep |
