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>| Prop | Type | Default | Description |
|---|---|---|---|
| size | "default""lg""sm" | — | |
| tint | "chart-1""chart-2""chart-3""chart-4""chart-5""neutral" | — | |
| selected | boolean | false | Shows the folder as picked: an outline with a gap and the GlassFolderCheck. |
| disabled | boolean | false | Stops the open press, the hover pose, and drops. |
| drop | "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. |
| on | — | Makes the folder a drop target: called with the files of a drop that acceptsDrop took. | |
| accepts | — | 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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
GlassFolderFiles
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
GlassFolderFile
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| index | 012 | — | 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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
GlassFolderEmpty
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
GlassFolderBadge
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| tone | "destructive""neutral" | — | |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
GlassFolderProgress
<div>| Prop | Type | Default | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | |||||||||||||||||||||||||||||||
| glow | boolean | — | 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-valuetext | string | — | A string value that provides a user-friendly name for aria-valuenow, the current value of the progress bar. | ||||||||||||||||||||||||||||||
| format | NumberFormatOptions | — | Options to format the value. | ||||||||||||||||||||||||||||||
| get | — | 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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
GlassFolderCaption
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
GlassFolderLabel
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
GlassFolderMeta
<p>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <p> attributes | — | Every other attribute goes to the <p>, with a ref. |
GlassFolderOpen
<button>| Prop | Type | Default | Description | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From Base UIButtonBase UI docs | ||||||||||||||
| focusable | boolean | false | Whether the button should be focusable when disabled. | |||||||||||
| class | — | 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. | |||||||||||
| Tab | Moves the focus to the open press of the folder and shows the outline. |
|---|---|
| Enter | Opens the folder (calls the onClick of GlassFolderOpen). |
| Space | Opens the folder (calls the onClick of GlassFolderOpen). |
Built with
Installs with Glass Folder
- Components
- Progress









