Inputs
Mobile date drawer
Mobile date drawer: A date field styled for touch that opens its calendar as a bottom sheet sliding up from the edge of the frame instead of a small floating popover.
Using Mobile date drawer
Mobile date drawer uses the card preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
accent | color | #38BDF8 | No additional limit in the metadata. |
label | text | Date of birth | Up to 30 characters |
caption | text | This example works best on mobile. | Up to 60 characters |
Which frameworks are available for Mobile date drawer?
Mobile date drawer is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Mobile date drawer depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx.
What accessibility details are visible in Mobile date drawer?
The React source for Mobile date drawer includes: native elements (button); attributes and handlers (aria-current, aria-expanded, aria-haspopup, aria-hidden, aria-label, aria-live, aria-modal, aria-selected); explicit roles (dialog, grid, gridcell, row). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Mobile date drawer handle reduced motion?
Mobile date drawer reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduced ? 0 : 0.22; spring: reduced ? { duration: 0 } : { type: "spring" as const, stiffness: 340, damping: 34, mass: 0.9 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.