Avatar
Folder Attachments Tile
A folder tile: an icon, a name, an attachment count with Russian pluralisation and the last-modified date on one line.
React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.
What you can change
- name — the folder name
- itemCount — the attachment count, pluralised automatically
- modifiedLabel — the ready-made modified-date string
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.club/c/icontile-017?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
How to use
<Icontile017 name="Design mockups" itemCount={12} modifiedLabel="Modified 3 days ago" tone="accent" />A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Name
name· default: Design mockups- Attachments
itemCount· default: 12- Modified
modifiedLabel· default: Modified 3 days ago- Tone
tone· default: accent- Background
background· default: theme colour
More in Avatar
FAQ
- How do I add Folder Attachments Tile with Cursor or Claude Code?
- Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
- What does Folder Attachments Tile depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Folder Attachments Tile?
- Adapt: name — the folder name; itemCount — the attachment count, pluralised automatically; modifiedLabel — the ready-made modified-date string. Keep as installed: the local --vibeui-icontile-017-* palette — do not swap it for your theme tokens; picking the plural form with pluralForm and the countText templates — a static word is grammatically wrong for count=1 or count=3 in Russian; the narrow-container hiding order: the date and separator leave first through @container, the attachment count always stays.
- Is Folder Attachments Tile free?
- Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.
For developers
npx shadcn@latest add https://vibeui.club/r/pro/icontile-017.jsonThis command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options
Technical notes
Server component, no hooks. The attachment count is inflected by the standard rules of Russian: the pluralForm function picks the form (1 file, 3 file, 12 files), and the text itself comes from the countText templates with {count} substituted rather than being printed as a static word — otherwise a tile with any count other than one would sound ungrammatical on "1". The metadata line is assembled from three parts — the counter, a decorative dot separator and the date: on a narrow container the date and the dot are the first to be hidden through @container, while the attachment count always remains, because for skimming a list it matters more than the exact date. itemCount is clamped from below at zero inside the component. The icon tile's colour follows the category-wide "background and glyph from one hue" formula, switched by tone. The palette has been moved to light-dark(): in the dark branch the border is lighter than the background rather than darker. The tile has no surface by default — it is set by the background prop, and then the theme branch is computed from the lightness of the given colour.
Tags
- icontile
- folder
- file
- date
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…