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鈥檝e always been into building performant and accessible sites, but lately I鈥檝e been taking it extremely seriously. So much so that I鈥檝e been building a tool to help me optimize and monitor the sites that I build to make sure that I鈥檓 making an attempt to offer the best experience to those who visit them. If you鈥檙e into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 馃憢, I鈥檓 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鈥檙e interested in other things I鈥檓 working on, follow me on Twitter or check out the open source projects I鈥檝e 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鈥搃sh.

Open Software & Tools

This site wouldn鈥檛 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 馃檹

漏 2026 鈥撀燩kg Stats / Ryan Hefner

@lancemoe/react-daisyui

v5.7.29

Published

react-daisyui - DaisyUI components built with React 馃尲

Readme

@lancemoe/react-daisyui 馃尲

React components for daisyUI 5 and Tailwind CSS 4.

Documentation 路 npm 路 GitHub 路 Discord

npm version npm downloads bundle size license

Features

  • Built for React 18+ with TypeScript declarations included.
  • Matches daisyUI 5 component APIs, semantic classes, and theming.
  • Uses Tailwind CSS 4's CSS-first configuration.
  • Supports composable components such as Card.Body, Modal.Body, and Dropdown.Item.

Requirements

  • React and React DOM 18 or later
  • Tailwind CSS 4.3 or later
  • daisyUI 5.7 or later

Install

Install the library alongside its peer dependencies:

pnpm add @lancemoe/react-daisyui react react-dom tailwindcss daisyui
npm install @lancemoe/react-daisyui react react-dom tailwindcss daisyui

Then enable Tailwind and daisyUI in your application's CSS entry point:

@import 'tailwindcss';
@plugin 'daisyui';

Keep your framework's normal Tailwind integration in place; no tailwind.config.js content entry or Next.js transpilation setting is needed for this package.

Scan library utilities when needed

The daisyUI plugin already supplies the styles for standard components such as Button and Card, so most applications do not need extra source configuration. Add the following only when a component relies on Tailwind utility classes generated inside this package鈥攆or example, Avatar sizing, responsive button options, or Carousel layout:

@source '../node_modules/@lancemoe/react-daisyui/dist';

Tailwind 4 ignores node_modules during automatic source detection. Adjust the path so that it is relative to the CSS file.

Themes

Configure themes in the same CSS file:

@import 'tailwindcss';
@plugin 'daisyui' {
  themes:
    light --default,
    dark --prefersdark,
    cupcake;
}

See the daisyUI theme documentation for custom themes and configuration options.

Quick start

import { Button, Card } from '@lancemoe/react-daisyui';

export function WelcomeCard() {
  return (
    <Card className="w-96 bg-base-100 shadow-xl">
      <Card.Body>
        <Card.Title>react-daisyui</Card.Title>
        <p>Build daisyUI interfaces with React components.</p>
        <Card.Actions className="justify-end">
          <Button color="primary">Get started</Button>
        </Card.Actions>
      </Card.Body>
    </Card>
  );
}

Wrap part of an application in Theme to choose a daisyUI theme for that subtree:

import { Button, Theme } from '@lancemoe/react-daisyui';

export function ThemeExample() {
  return (
    <Theme dataTheme="dark">
      <Button color="primary">Dark theme button</Button>
    </Theme>
  );
}

Components

The interactive documentation contains props, examples, and accessibility guidance for every component.

| Group | Components | | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Actions | Button, Fab, Dropdown, Modal, Swap, Filter | | Data display | Accordion, Aura, Avatar, Badge, Card, Carousel, ChatBubble, Collapse, Countdown, Diff, Hover3d, HoverGallery, Kbd, List, Stats, Status, Table, TextRotate, Timeline | | Navigation | Breadcrumbs, Dock, Link, Megamenu, Menu, Navbar, Pagination, Steps, Tabs | | Feedback | Alert, Loading, Progress, RadialProgress, Skeleton, Toast, Tooltip | | Data input | Calendar, Checkbox, Fieldset, FileInput, Form, Input, Label, Otp, Radio, Range, Rating, Select, Textarea, Toggle, Validator | | Layout | Artboard, Divider, Drawer, Footer, Hero, Indicator, Join, Mask, Stack | | Mockups | CodeMockup, PhoneMockup, WindowMockup | | Utilities | Theme, ThemeController, useTheme |

All component props are exported as TypeScript types, for example ButtonProps and ModalProps.

Development

This repository uses pnpm.

pnpm install --frozen-lockfile
pnpm start

Useful verification commands:

pnpm run lint
pnpm run typecheck
pnpm test
pnpm run dist
pnpm run docs

To scaffold a component, run pnpm generate component and follow the prompts. Add the component export, stories, and tests before opening a pull request. Generated package output belongs in dist/, and generated Storybook documentation belongs in docs/; regenerate them through the commands above rather than editing them by hand.

Contributing

Issues and pull requests are welcome. Please keep changes focused, include tests for behavior changes, and add or update Storybook stories for visible component changes. Read AGENTS.md for the repository's development conventions.

License

MIT