# Building a Drawer Component

Essay by Emil Kowalski (https://emilkowal.ski)

My experience building a drawer component for React.

Topics: Components, Motion
Source: https://emilkowal.ski/ui/building-a-drawer-component

## For agents

Nothing to install. This is a reference: cite it, or fetch the source when
the reasoning matters.

Read it at: https://emilkowal.ski/ui/building-a-drawer-component

The full text is not reproduced here. It belongs to its author. What is
above is the author's own summary and the topics it covers.

Skills in this library that act on the same ground:

- emil-design-eng (https://stackskills.dev/md/emil-design-eng): The design-engineering house style behind Sonner and Vaul.
- animate (https://stackskills.dev/md/animate): Builds an animation from scratch, decisions in the order that matters.
- review-animations (https://stackskills.dev/md/review-animations): Reviews your motion strictly, against Emil's rules.
- improve-animations (https://stackskills.dev/md/improve-animations): Audits every animation in a codebase and hands back prioritised plans.
- find-animation-opportunities (https://stackskills.dev/md/find-animation-opportunities): Finds where motion would genuinely help, and says what not to animate.

## The short version

Bringing Apple's iOS sheet to the web as Vaul, drag-to-dismiss included, and the problems that surfaced along the way.

## Verification

- Source link: Resolved (HTTP 200) (pass)
- Reading copy: Plain markdown for agents at /md/building-a-drawer-component (pass)
- Attribution: Credited to Emil Kowalski (pass)

Full page: https://stackskills.dev/library/building-a-drawer-component
