OverviewSetupComponentsContributingFull documentation
Components
62
Actions
ButtonToggleToggle Group
Inputs
CalendarCheckboxColor PickerCurrency InputDate Time PickerOptional Time PickerFormForm Required IndicatorInputInput OTPLabelRadio GroupSelectSliderSwitchTextareaTime Picker Input
Overlays
Alert DialogContext MenuDialogDrawerDropdown MenuHover CardPopoverSheetTooltip
Navigation
BreadcrumbCommandQuick Command CenterMenubarNavbarNavigation MenuPaginationSidebarTabs
Feedback
AlertAvatarBadgeProgressSkeletonSonnerSticky Bottom BarToastToaster
Data
ChartDiff ViewerTable
Layout
AccordionAspect RatioCardCarouselCollapsibleResizableScroll AreaSeparator
Typography
Code BlockKbdMarkdown
Advanced
Report Problem Dialog
AboutContactPricingApps
  • Learning Resources
  • Blog

    Read our latest articles and updates.

  • Changelog

    Stay up to date with our latest product updates and improvements.

  • Careers

    Join our team and help us build the future of Tuturuuu.

  • Partners

    Explore partnership opportunities with Tuturuuu.

  • Contributors

    Meet the people who make Tuturuuu possible.

  • Security

    Learn about our security practices and commitments.

  • Random Generator

    Generate secure IDs, tokens, API keys, and passwords locally in your browser.

  • Branding

    Get Tuturuuu's branding assets and guidelines.

  • UI

    Browse the Tuturuuu UI component library.

  • Documentation

    Find detailed documentation and guides.

Feedback

Toast

Preview Toast, copy setup snippets, review examples, and inspect API exports for @tuturuuu/ui/toast.

Live preview@tuturuuu/ui/toastView in docs

Preview

A contained preview using the same shared primitive exported by the package.

Installation

Install the shared UI package, import global styles once, then import the component from its public subpath.

terminal
bun add @tuturuuu/ui
manual step
import '@tuturuuu/ui/globals.css';
manual step
import { Toast, ToastTitle, ToastDescription, ToastProvider } from '@tuturuuu/ui/toast';

Usage

Copy the default usage snippet and adapt labels, state, and event handlers to the product surface.

usage.tsx
import { Toast, ToastDescription, ToastTitle } from '@tuturuuu/ui/toast';

<Toast><ToastTitle>Saved</ToastTitle><ToastDescription>Your changes are live.</ToastDescription></Toast>

Examples

Examples reuse the registry snippets so the docs stay aligned with the component catalog.

Default

A minimal implementation using the current registry snippet.

toast.tsx
import { Toast, ToastDescription, ToastTitle } from '@tuturuuu/ui/toast';

<Toast><ToastTitle>Saved</ToastTitle><ToastDescription>Your changes are live.</ToastDescription></Toast>

Composition

Use the grouped exports when the primitive has slots, triggers, content regions, or providers.

toast.tsx
import {
  Toast,
  ToastTitle,
  ToastDescription,
  ToastProvider,
} from '@tuturuuu/ui/toast';

Package import

Import through the public package path so workspace and external apps share the same contract.

toast.tsx
// Public package import
import { Toast } from '@tuturuuu/ui/toast';

// Workspace apps should keep importing through the package boundary.

API reference

The public exports currently available from this component entry.

NameKindDescription
ToastComponentToast is exported from @tuturuuu/ui/toast. Inspect the source for component-specific props and composition details.
ToastTitleComponentToastTitle is exported from @tuturuuu/ui/toast. Inspect the source for component-specific props and composition details.
ToastDescriptionComponentToastDescription is exported from @tuturuuu/ui/toast. Inspect the source for component-specific props and composition details.
ToastProviderProviderToastProvider is exported from @tuturuuu/ui/toast. Inspect the source for component-specific props and composition details.

Customization

Common props, states, and composition points to review before using this component.

VariantActionViewport

Related components

Continue through nearby primitives in the same category.

Alert

A Feedback component from @tuturuuu/ui/alert.

@tuturuuu/ui/alert

Avatar

A Feedback component from @tuturuuu/ui/avatar.

@tuturuuu/ui/avatar

Badge

A Feedback component from @tuturuuu/ui/badge.

@tuturuuu/ui/badge
PreviousSticky Bottom BarNextToaster
On this page
PreviewInstallationUsageExamplesAPI referenceCustomizationRelated

Search components

Jump to any component.

logo
Tuturuuu