shadcn-solid
DocsComponentsCharts


Get Started
  • Introduction
  • Installation
  • Theming
  • Dark Mode
Form
  • Tanstack Form
Components
  • Accordion
  • Alert
  • Alert Dialog
  • Badge
  • Breadcrumbs
  • Button Group
  • Button
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Collapsible
  • Combobox
  • Command
  • Context Menu
  • Data Table
  • Date Picker
  • Dialog
  • Drawer
  • Dropdown Menu
  • File Field
  • Hover Card
  • Kbd
  • Menubar
  • Navigation Menu
  • Number Field
  • OTP Field
  • Pagination
  • Popover
  • Progress
  • Radio Group
  • Resizable
  • Search
  • Segmented Control
  • Select
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Sonner
  • Switch
  • Table
  • Tabs
  • Text Field
  • Toggle Group
  • Toggle Button
  • Tooltip

Sonner

An opinionated toast component for Solid.

Docs API Reference

Component sonner-demo not found in registry.

Installation

Install the following dependencies:

Copy and paste the following code into your project:

Add the Toaster component

src/app.tsx
import { Toaster } from "@/components/ui/sonner"
 
export default function App() {
  return (
    <Router
      root={(props) => (
        <Suspense>
          {props.children}
          <Toaster />
        </Suspense>
      )}
    >
      <FileRoutes />
    </Router>
  )
}

Usage

import { toast } from "somoto"
toast("Event has been created.")

Changelog

2025-11-13 Icons

We've updated the Sonner component to use icons. Update your sonner.tsx file to use the new icons.

SliderSwitch
Built & designed by shadcn. Ported to Solid by hngngn. The source code is available on GitHub.