Components

Toast

A brief message that appears at the bottom of the screen to provide feedback about an operation. Built with Base UI Toast component with customizable variants and animations.

Loading

Installation

pnpm dlx shadcn@latest add @toui/toast/base

Examples

Positions

Loading

Close Button

Loading

Type

Loading

Custom

Loading

Promise

Loading

Pattern

Tokens

7 CSS variables in 7 categories.

padding

CSS VariableValueDescription
--toast-padding1remInner padding

gap

CSS VariableValueDescription
--toast-gap0.625remGap between icon and text

radius

CSS VariableValueDescription
--toast-radiusvar(--component-radius-md)

width-sm

CSS VariableValueDescription
--toast-width-sm24remsm:w-sm

text-title

CSS VariableValueDescription
--toast-text-titlevar(--component-text-sm)

text-desc

CSS VariableValueDescription
--toast-text-descvar(--component-text-xs)

close-size

CSS VariableValueDescription
--toast-close-size0.875remClose icon size

API Reference

This component is built using Base UI Toast primitives. For detailed information, please visit the full API reference.

We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking Accept, you agree to our use of cookies.
Learn more.