Overlays
Tilt-in content frame
Tilt-in content frame: An informational panel that tilts in from an edge, dismisses freely on outside click or Escape, and grows smoothly as a second section of content is revealed.
Using Tilt-in content frame
Tilt-in content frame 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 |
|---|---|---|---|
from | select | left | Options: top, bottom, left, right |
accent | color | #38BDF8 | No additional limit in the metadata. |
showMore | boolean | false | No additional limit in the metadata. |
title | text | Keyboard shortcuts | Up to 50 characters |
Which frameworks are available for Tilt-in content frame?
Tilt-in content frame 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 Tilt-in content frame depend on?
The React metadata lists these npm dependencies beyond React: motion, radix-ui, clsx, tailwind-merge.
What accessibility details are visible in Tilt-in content frame?
The React source for Tilt-in content frame includes: native elements (button); attributes and handlers (aria-checked, aria-hidden, aria-label); explicit roles (switch). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Tilt-in content frame handle reduced motion?
Tilt-in content frame reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduced ? 0 : 0.16; duration: reduced ? 0 : 0.18; enter: reduced ? { duration: 0 } : { type: "spring", stiffness: 220, damping: 24, 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.