Components

Alert

Types

Info

Bring a call-out into your docs with a short note.

Success

Your changes were saved.

Warning

This action cannot be undone.

Error

We could not save your changes. Try again.

Without a title

Docs are updated when you publish.

Invite sent to your team.

Your trial ends in 3 days.

Enter a valid email address.

Action and close

Info

A new version of the kit is ready.

Read the notes

Success

Your project was published.

Warning

Your plan limit is almost reached.

Review plan

Error

The upload failed.

Try again

When to use

Use Alert for a message the person should read in context: a note in the docs, a form error, a success message after saving, or a warning before a risky step. It sits inside the page, not on top of it.

Pick the type by meaning, not colour. Info is for notes, Success for done, Warning for care needed and Danger for errors. Keep the text to one or two sentences and put the next step in the action.

Type is never shown by colour alone. Each type has its own icon, and a title should start with the type word, such as Warning or Error. Alert extends Announcement, the small pill for site news, and leaves it unchanged.

Variants

Variant

Look

Use

Info

Status/Info Subtle fill, Status/Info border and icon, Book icon

A note or tip in the docs.

Success

Status/Success tokens, Check icon

A saved or sent message.

Warning

Status/Warning tokens, Lightning Bolt icon

Something to check before going on.

Danger

Status/Danger tokens, Minus icon

A form error or a failed action.

Props

Prop

Type and default

What it does

title

String. Info

The heading. Start it with the type word: Info, Success, Warning or Error.

description

String. Your project has been saved.

The message. One or two sentences.

actionLabel

String. Undo

The text of the action under the message. Needs showAction.

showTitle

Boolean. On

Turn off for a one-line alert. The icon still names the type.

showAction

Boolean. Off

Shows the action under the message.

showClose

Boolean. Off

Shows a close icon. It draws the icon only: add a link or code to close the alert.

customIcon

Boolean. Off

Turn on to use the icon property in place of the icon for the type.

icon

Icon from Gridline Icons. Settings

The icon used when customIcon is on. Type icons are Book, Check, Lightning Bolt and Minus.

variant

Four options. Info

The type: Info, Success, Warning or Danger.

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.