Components

Attachment

In a prompt

pricing-brief.pdf

248 KB

roadmap.csv

Uploading 40%

export.zip

Upload failed. Over 10 MB.

States, sizes and direction

pricing-brief.pdf

248 KB

roadmap.csv

Uploading 40%

export.zip

Upload failed. Over 10 MB.

pricing-brief.pdf

248 KB

roadmap.csv

Uploading 40%

export.zip

Upload failed. Over 10 MB.

pricing-brief.pdf

248 KB

roadmap.csv

Uploading 40%

export.zip

Upload failed. Over 10 MB.

When to use

Use Attachment for a file the person has added to a prompt or a message. It shows the name, a short meta line and the state of the upload.

Put the chips above Prompt Input, one per file. Use Small there, and Default in a message or a list. Pick a Vertical variant for a tile.

Always write the state in the meta line, such as Uploading 40% or Upload failed. Colour alone never carries an error.

Variants

Variant

Look

Use

Idle Default

Surface fill, 1px Border/Subtle, 36px icon chip

A file that is ready.

Uploading Default

Idle, plus a 4px Action/Primary bar

A file being sent.

Error Default

1px Status/Danger border, danger meta text, Close icon

A file that failed.

Idle Small

Tighter padding, 28px icon chip

Chips above Prompt Input.

Uploading Small

Small, plus the bar

Small chips while sending.

Error Small

Small, in the error style

Small chips that failed.

Props

Prop

Type and default

What it does

fileName

String. pricing-brief.pdf

The file name. It is cut with an ellipsis when it is too long.

meta

String. 248 KB

One short line: the size, or the state in words, such as Uploading 40%.

icon

Icon from Gridline Icons. Clipboard

The glyph in the chip. Error uses Close.

direction

Vertical variants. Horizontal by default

Every variant also exists as Vertical, which stacks the icon above the text. A variable cannot drive stack direction, so it is a variant.

variant

Twelve options. Idle Default

State, size and direction together. See the Variants table.

bar

Not a prop

The Uploading bar is a fixed 40% fill. Write the real number in meta.

Gridline

The Framer UI kit for people who are done with AI slop.

Template by Minal Patel

02 / Demos

© 2026 Gridline

Create a free website with Framer, the website builder loved by startups, designers and agencies.