npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

solid-sonner-toast

v0.0.2-4

Published

**This is an unofficial port of [sonner](https://sonner.emilkowal.ski/) for Solid.js, just for learning and interest. And there is already a port called [solid sonner](https://solid-sonner.vercel.app/)**

Readme

solid-sonner-toast

This is an unofficial port of sonner for Solid.js, just for learning and interest. And there is already a port called solid sonner

I'm pleased if you still want to try it out and here is the document built with solid-start.

Getting started

Install

pnpm i solid-sonner-toast 

Add Toaster to your App

// @refresh reload
import { Suspense } from 'solid-js'
import { Toaster } from 'solid-sonner-toast'

import { Router } from '@solidjs/router'
import { FileRoutes } from '@solidjs/start'

import './app.css'
import BaseLayout from './components/base-layout'

export default function App() {
  return (
    <Router
      root={(props) => (
        <BaseLayout>
          <Suspense>{props.children}</Suspense>
        </BaseLayout>
      )}
    >
      <Toaster />
      <FileRoutes />
    </Router>
  )
}

Render a toast

Use toast() to render a toast

import { toast } from 'solid-sonner-toast'

const Button = () => {
  return <button onClick={() => toast('Hello world')}>Hello world</button>
}

toast()

| Property | Description | Default | | :----------------- | :----------------------------------------------------------------------------------------------------: | -------------: | | description | Toast's description, renders underneath the title. | - | | position | Position of the toast. | bottom-right | | duration | Time in milliseconds that should elapse before automatically closing the toast. | 4000 | | dismissible | If false, it'll prevent the user from dismissing the toast. | true | | icon | Icon displayed in front of toast's text, aligned vertically. | - | | action | Renders a primary button, clicking it will close the toast. | - | | cancel | Renders a secondary button, clicking it will close the toast. | - | | id | Custom id for the toast. | - | | onDismiss | The function gets called when either the close button is clicked, or the toast is swiped. | - | | onAutoClose | Function that gets called when the toast disappears automatically after it's timeout (durationprop). | -| | unstyled | Removes the default styling, which allows for easier customization. | false| | actionButtonStyles | Styles for the action button | {}| | cancelButtonStyles | Styles for the cancel button | {}` |

Toaster

| Property | Description | Default | | :-------------------- | :-----------------------------------------------------------------------------------------------------------------------------: | ----------------------------------: | | theme | Toast's theme, either light, dark, or system | light | | richColors | Makes error and success state more colorful | false | | expand | Toasts will be expanded by default | false | | visibleToasts | Amount of visible toasts | 3 | | position | Place where the toasts will be rendered | bottom-right | | closeButton | Adds a close button to all toasts | false | | offset | Offset from the edges of the screen. | 32px | | dir | Directionality of toast's text | ltr | | invert | Dark toasts in light mode and vice versa. | false | | gap | Gap between toasts when expanded | 14 | | loadingIcon | Changes the default loading icon | - |