drawer-sides.tsx — ui Source File
Architecture documentation for drawer-sides.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR fab34b3e_7bc7_c076_e474_321d58d7275e["drawer-sides.tsx"] 4544fa74_9b37_0912_c55e_f4ff161b8e83["button"] fab34b3e_7bc7_c076_e474_321d58d7275e --> 4544fa74_9b37_0912_c55e_f4ff161b8e83 af96207b_3a7e_c8dc_285b_10654622127f["drawer"] fab34b3e_7bc7_c076_e474_321d58d7275e --> af96207b_3a7e_c8dc_285b_10654622127f style fab34b3e_7bc7_c076_e474_321d58d7275e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Button } from "@/examples/base/ui/button"
import {
Drawer,
DrawerClose,
DrawerContent,
DrawerDescription,
DrawerFooter,
DrawerHeader,
DrawerTitle,
DrawerTrigger,
} from "@/examples/base/ui/drawer"
const DRAWER_SIDES = ["top", "right", "bottom", "left"] as const
export function DrawerWithSides() {
return (
<div className="flex flex-wrap gap-2">
{DRAWER_SIDES.map((side) => (
<Drawer
key={side}
direction={
side === "bottom" ? undefined : (side as "top" | "right" | "left")
}
>
<DrawerTrigger asChild>
<Button variant="outline" className="capitalize">
{side}
</Button>
</DrawerTrigger>
<DrawerContent className="data-[vaul-drawer-direction=bottom]:max-h-[50vh] data-[vaul-drawer-direction=top]:max-h-[50vh]">
<DrawerHeader>
<DrawerTitle>Move Goal</DrawerTitle>
<DrawerDescription>
Set your daily activity goal.
</DrawerDescription>
</DrawerHeader>
<div className="no-scrollbar overflow-y-auto px-4">
{Array.from({ length: 10 }).map((_, index) => (
<p key={index} className="mb-4 leading-normal">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed
do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.
</p>
))}
</div>
<DrawerFooter>
<Button>Submit</Button>
<DrawerClose asChild>
<Button variant="outline">Cancel</Button>
</DrawerClose>
</DrawerFooter>
</DrawerContent>
</Drawer>
))}
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- drawer
Source
Frequently Asked Questions
What does drawer-sides.tsx do?
drawer-sides.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, ContentSourcing subdomain.
What functions are defined in drawer-sides.tsx?
drawer-sides.tsx defines 1 function(s): DrawerWithSides.
What does drawer-sides.tsx depend on?
drawer-sides.tsx imports 2 module(s): button, drawer.
Where is drawer-sides.tsx in the architecture?
drawer-sides.tsx is located at apps/v4/examples/base/drawer-sides.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/base).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free