Introduction
Installation
Next.jsViteLaravelReact RouterRemixAstroTanStack StartTanStack RouterManual InstallationMCP
All componentsTheme
FieldFormInputText FieldTextareaSearch FieldInput OTPNumber FieldNumber FormatSliderCheckboxSwitchRadioSelectCombo BoxList BoxChoice BoxMulti SelectToken FieldNewTag FieldTag GroupCalendarDate FieldDate PickerDate Range PickerRange CalendarTime FieldColor PickerColor FieldColor AreaColor SliderColor SwatchColor Swatch PickerColor ThumbColor WheelDrop ZoneFile Trigger
ButtonButton GroupToggleToggle GroupPreskok Auth Button
EditorHeadingLinkTextKeyboard
CardContainerGrid ListResizableTableTreeSeparatorDescription ListScroll AreaShow MoreToolbar
BreadcrumbsNavbarPaginationTabsSidebar
DialogModalDrawerPopoverPreview TriggerNewSheetTooltipContext MenuDropdownCommandCommand MenuDisclosureMenu
ToastProgress BarProgress CircleMeterLoaderSkeletonNoteBadge
Chart (helpers)Area ChartBar ChartLine ChartPie ChartExperimental ChartsNewExperimental Radial ChartNewExperimental Radar ChartNewBar ListTracker
Async ImageAvatarCarouselPreskok Icon
Feedback

Toast

Toast notifications using Sonner.

View as MarkdownAsk ChatGPT

Installation

npx shadcn@latest add @preskok/toast

Usage

import { toast } from "sonner"

import { Toast } from "@/components/ui/preskok-ui/toast"

export function ToastDemo() {
  return (
    <div>
      <button onClick={() => toast.success("Saved!")}>Show toast</button>
      <Toast />
    </div>
  )
}

Styling

Add these CSS variables for better-looking toasts:

@import "tailwindcss";
@import "tw-animate-css";
@import "./toast.css";
@plugin "tailwindcss-react-aria-components";

Menu

A comprehensive menu component with submenus and sections.

Progress Bar

A progress bar component for showing completion status.

On this page

Installation
Usage
Styling