Skip to content

Glass Folder

Pro

A folder you can see into: up to three files peek out of a frosted glass pocket, lift on hover, and a file you drop falls in.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 16, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Glass Folder needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
25
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Compose the folder from its parts: the files behind the glass, the caption, and the open press last, over the whole tile.

The sample also uses Image. One command adds them with this item:

trip-folder.tsx

GlassFolder

<div>
PropTypeDefaultDescription
size"default""lg""sm"—
tint"chart-1""chart-2""chart-3""chart-4""chart-5""neutral"—
selectedbooleanfalseShows the folder as picked: an outline with a gap and the GlassFolderCheck.
disabledbooleanfalseStops the open press, the hover pose, and drops.
dropState"over""rejected"—The drop to show, when the app owns the drag (a Dropzone around a grid). With none, the folder tracks its own drag while onFilesDrop is set.
onFilesDrop—Makes the folder a drop target: called with the files of a drop that acceptsDrop took.
acceptsDrop—Tells whether a drag can drop here, from the MIME types the browser shows during a drag (names are hidden until the drop). Default: every file.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

GlassFolderVisual

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

GlassFolderFiles

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

GlassFolderFile

<div>
PropTypeDefaultDescription
indexRequired012—The place in the fan: 0 back at the start, 1 the middle, 2 front at the end.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

GlassFolderFront

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

GlassFolderEmpty

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

GlassFolderBadge

<span>
PropTypeDefaultDescription
tone"destructive""neutral"—
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

GlassFolderProgress

<div>
PropTypeDefaultDescription
classNamestring—
glowboolean—A soft halo in the fill color (glow, @gelatin-ui/glow). Default: false.
tone"destructive""info""neutral""success""warning"—The fill color: default (primary), or a status for a task whose state has a meaning: success done, warning slow or nearly full, info a neutral step, destructive failed. Color is never the only signal: say the state in the label or value.
From Base UIProgress.RootBase UI docs
aria-valuetextstring—A string value that provides a user-friendly name for aria-valuenow, the current value of the progress bar.
formatNumberFormatOptions—Options to format the value.
getAriaValueText—Accepts a function which returns a string value that provides a human-readable text alternative for the current value of the progress bar.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

GlassFolderCheck

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

GlassFolderCaption

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

GlassFolderLabel

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

GlassFolderMeta

<p>
PropTypeDefaultDescription
...props<p> attributes—Every other attribute goes to the <p>, with a ref.

GlassFolderOpen

<button>
PropTypeDefaultDescription
From Base UIButtonBase UI docs
focusableWhenDisabledbooleanfalseWhether the button should be focusable when disabled.
className—CSS class applied to the element, or a function that returns a class based on the component's state.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.
  • Use it in a drive, a gallery, or a project page where people open folders from a grid.
  • Set onFilesDrop to make the folder a drop target; set acceptsDrop to refuse some types.
  • Use GlassFolderProgress for an upload, and GlassFolderBadge for a locked folder or a failed upload.
  • For a list row with a file name, a size, and actions, use an Attachment.
  • For a drop area for files with no folder, use a Dropzone.
TabMoves the focus to the open press of the folder and shows the outline.
EnterOpens the folder (calls the onClick of GlassFolderOpen).
SpaceOpens the folder (calls the onClick of GlassFolderOpen).

GlassFolderOpen is a Base UI Button over the whole tile: aria-labelledby points at GlassFolderLabel and aria-describedby at GlassFolderMeta. A plain-text name is also its title, so a cut name shows in full.

The folder picture is decoration (aria-hidden); the label and the meta say what is in it. Say a lock or a failed upload in the meta too: the badge is not the only signal.

Keyboard focus shows a 2px outline 3px off the picture, with corners that follow it. Selection shows the same outline and a check.

The open press covers the folder and its caption, so the touch target is the full tile.

Hover and press
island · the files lift and turn out of the pocket (the middle one first, the outer ones 30ms later) and the glass tips back 18°
Press
press · 100ms · ease-out (0, 0, 0.2, 1) · the folder scales to 97% from its bottom edge
Drag over
hover · 150ms · ease-out (0, 0, 0.2, 1) · the files lift higher and the glass tips back 30°
A file drops in
island · the new file falls in from above and settles; an old one slides down under the glass and fades out on fade-exit
Selected check
statusPop · the check pops in from 60% scale and fades out on fade-exit
Meta text
fade · 150ms · the new text rises in place while the old one leaves on fade-exit (90ms)

Built with

Installs with Glass Folder

Components
Progress
  1. AddedGlass Folder, with Progress.
Open the release