Skip to content
Menu

Layout

Peek Inside Folder

Peek Inside Folder: A stylized folder icon that springs open on click to fan out three papers tucked inside, each nudging away from the pointer.

Using Peek Inside Folder

Peek Inside Folder uses the inline 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.

ControlTypeDefaultPreview limits
accentColorcolor#7C5CFFNo additional limit in the metadata.
sizenumber1From 0.6 to 1.6; step 0.1
openbooleanfalseNo additional limit in the metadata.
Which frameworks are available for Peek Inside Folder?

Peek Inside Folder 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 Peek Inside Folder depend on?

The React metadata lists these npm dependencies beyond React: motion, clsx, tailwind-merge.

What accessibility details are visible in Peek Inside Folder?

The React source for Peek Inside Folder includes: native elements (button); attributes and handlers (aria-expanded, aria-hidden, aria-label). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Peek Inside Folder handle reduced motion?

Peek Inside Folder reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: flapTransition: reduced ? { duration: 0.01 } : { type: "spring" as const, stiffness: 260, damping: 24 }; reduced ? undefined : "motion-safe:transition-transform motion-safe:duration-[220ms] motion-safe:ease-out"; springTransition: reduced ? { duration: 0.01 } : { type: "spring" as const, stiffness: 300, damping: 24 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components