MCPcopy Create free account
hub / github.com/WatermelonCorp/watermelon-platform / FormExample

Function FormExample

src/components/component-example.tsx:139–463  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137] as const
138
139function FormExample() {
140 const [notifications, setNotifications] = React.useState({
141 email: true,
142 sms: false,
143 push: true,
144 })
145 const [theme, setTheme] = React.useState("light")
146
147 return (
148 <Example title="Form">
149 <Card className="w-full max-w-md">
150 <CardHeader>
151 <CardTitle>User Information</CardTitle>
152 <CardDescription>Please fill in your details below</CardDescription>
153 <CardAction>
154 <DropdownMenu>
155 <DropdownMenuTrigger asChild>
156 <Button variant="ghost" size="icon">
157 <HugeiconsIcon icon={MoreVerticalCircle01Icon} strokeWidth={2} />
158 <span className="sr-only">More options</span>
159 </Button>
160 </DropdownMenuTrigger>
161 <DropdownMenuContent align="end" className="w-56">
162 <DropdownMenuGroup>
163 <DropdownMenuLabel>File</DropdownMenuLabel>
164 <DropdownMenuItem>
165 <HugeiconsIcon icon={FileIcon} strokeWidth={2} />
166 New File
167 <DropdownMenuShortcut>⌘N</DropdownMenuShortcut>
168 </DropdownMenuItem>
169 <DropdownMenuItem>
170 <HugeiconsIcon icon={FolderIcon} strokeWidth={2} />
171 New Folder
172 <DropdownMenuShortcut>⇧⌘N</DropdownMenuShortcut>
173 </DropdownMenuItem>
174 <DropdownMenuSub>
175 <DropdownMenuSubTrigger>
176 <HugeiconsIcon icon={FolderOpenIcon} strokeWidth={2} />
177 Open Recent
178 </DropdownMenuSubTrigger>
179 <DropdownMenuPortal>
180 <DropdownMenuSubContent>
181 <DropdownMenuGroup>
182 <DropdownMenuLabel>Recent Projects</DropdownMenuLabel>
183 <DropdownMenuItem>
184 <HugeiconsIcon icon={CodeIcon} strokeWidth={2} />
185 Project Alpha
186 </DropdownMenuItem>
187 <DropdownMenuItem>
188 <HugeiconsIcon icon={CodeIcon} strokeWidth={2} />
189 Project Beta
190 </DropdownMenuItem>
191 <DropdownMenuSub>
192 <DropdownMenuSubTrigger>
193 <HugeiconsIcon icon={MoreHorizontalCircle01Icon} strokeWidth={2} />
194 More Projects
195 </DropdownMenuSubTrigger>
196 <DropdownMenuPortal>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected