SmallFormExample() — ui Function Reference
Architecture documentation for the SmallFormExample() function in preview.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD ff164bb7_b4f5_4707_edbf_063b345b482c["SmallFormExample()"] f02a92c6_0fdc_9231_5419_752092d638ff["preview.tsx"] ff164bb7_b4f5_4707_edbf_063b345b482c -->|defined in| f02a92c6_0fdc_9231_5419_752092d638ff style ff164bb7_b4f5_4707_edbf_063b345b482c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/blocks/preview.tsx lines 1141–1515
function SmallFormExample() {
const [notifications, setNotifications] = React.useState({
email: true,
sms: false,
push: true,
})
const [theme, setTheme] = React.useState("light")
return (
<Example title="Form">
<Card className="w-full max-w-md">
<CardHeader>
<CardTitle>User Information</CardTitle>
<CardDescription>Please fill in your details below</CardDescription>
<CardAction>
<DropdownMenu>
<DropdownMenuTrigger
render={<Button variant="ghost" size="icon" />}
>
<IconPlaceholder
lucide="MoreVerticalIcon"
tabler="IconDotsVertical"
hugeicons="MoreVerticalCircle01Icon"
phosphor="DotsThreeVerticalIcon"
remixicon="RiMore2Line"
/>
<span className="sr-only">More options</span>
</DropdownMenuTrigger>
<DropdownMenuContent
align="end"
className="style-maia:w-56 style-mira:w-48 style-nova:w-48 style-vega:w-56 style-lyra:w-48"
>
<DropdownMenuGroup>
<DropdownMenuLabel>File</DropdownMenuLabel>
<DropdownMenuItem>
<IconPlaceholder
lucide="FileIcon"
tabler="IconFile"
hugeicons="FileIcon"
phosphor="FileIcon"
remixicon="RiFileLine"
/>
New File
<DropdownMenuShortcut>⌘N</DropdownMenuShortcut>
</DropdownMenuItem>
<DropdownMenuItem>
<IconPlaceholder
lucide="FolderIcon"
tabler="IconFolder"
hugeicons="FolderIcon"
phosphor="FolderIcon"
remixicon="RiFolderLine"
/>
New Folder
<DropdownMenuShortcut>⇧⌘N</DropdownMenuShortcut>
</DropdownMenuItem>
<DropdownMenuSub>
<DropdownMenuSubTrigger>
<IconPlaceholder
lucide="FolderOpenIcon"
tabler="IconFolderOpen"
hugeicons="FolderOpenIcon"
phosphor="FolderOpenIcon"
remixicon="RiFolderOpenLine"
/>
Open Recent
</DropdownMenuSubTrigger>
<DropdownMenuPortal>
<DropdownMenuSubContent>
<DropdownMenuGroup>
<DropdownMenuLabel>Recent Projects</DropdownMenuLabel>
<DropdownMenuItem>
<IconPlaceholder
lucide="FileCodeIcon"
tabler="IconFileCode"
hugeicons="CodeIcon"
phosphor="CodeIcon"
remixicon="RiCodeLine"
/>
Project Alpha
</DropdownMenuItem>
Domain
Subdomains
Source
Frequently Asked Questions
What does SmallFormExample() do?
SmallFormExample() is a function in the ui codebase, defined in apps/v4/registry/bases/base/blocks/preview.tsx.
Where is SmallFormExample() defined?
SmallFormExample() is defined in apps/v4/registry/bases/base/blocks/preview.tsx at line 1141.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free