GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - daisyui/react-daisyui: daisyUI components built with React 🌼

BranchesTags
Open more actions menu

Latest commit

 

History

528 Commits
528 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.storybook
.storybook
 
 
__mocks__
__mocks__
 
 
docs
docs
 
 
generators
generators
 
 
public
public
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
.prettierignore
.prettierignore
 
 
.prettierrc
.prettierrc
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
babel.config.cjs
babel.config.cjs
 
 
eslintrc.json
eslintrc.json
 
 
jest.config.cjs
jest.config.cjs
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
plopfile.js
plopfile.js
 
 
postcss.config.cjs
postcss.config.cjs
 
 
tailwind.config.cjs
tailwind.config.cjs
 
 
tsconfig.json
tsconfig.json
 
 
vite.config.ts
vite.config.ts
 
 

Repository files navigation

daisyUI components built with React, Typescript and TailwindCSS

[ See all components ]

card-3

react-daisyui 🌼

NPM Version npm bundle size npm License Discord Invite

📖 Check out our Storybook | 🎲 Try it with CodeSandbox

🙋 Need help or have a suggestion? Join our discord!


💿 Install

Make sure you've installed TailwindCSS and daisyUI.

Install the package with npm or yarn:

npm install react-daisyui
or
yarn add react-daisyui

To prevent TailwindCSS from purging your styles, add the following line to your tailwind.config.js:

module.exports = {
  content: [
    'node_modules/daisyui/dist/**/*.js',
    'node_modules/react-daisyui/dist/**/*.js',
  ],
  plugins: [require('daisyui')],
}
For Next.js 13 - 14:

Modify transpilePackages in your next.config.js file:

const nextConfig = {
  // ... your content here
  transpilePackages: ['react-daisyui'],
  reactStrictMode: true,
}

module.exports = nextConfig
For Next.js 12: Install next-transpile modules:
npm install next-transpile-modules

And import the package inside your next.config.js file:

const withTM = require('next-transpile-modules')(['react-daisyui'])

Finally, you can wrap your module.exports using withTM like so:

module.exports = withTM({
  //... your content here
  reactStrictMode: true,
})

⚡ Quick Start

Import react-daisyui components within your component files:

import { Button } from 'react-daisyui'

export default (props) => {
  return <Button color="primary">Click me!</Button>
}

🎨 Themes

To apply a theme (or multiple themes) to a page or components, import the Theme component and wrap your content:

import { Theme, Button } from 'react-daisyui'

export default (props) => {
  return (
    <>
      <Theme dataTheme="dark">
        <Button color="primary">Click me, dark!</Button>
      </Theme>

      <Theme dataTheme="light">
        <Button color="primary">Click me, light!</Button>
      </Theme>
    </>
  )
}

Use tools like the official daisyUI Theme Generator or daisyUI Theme Builder to easily create your own themes.


⚙️ Components

Actions:
  • Button
  • Dropdown
  • Modal
  • Swap
  • Theme Controller
Data Display:
  • Accordion
  • Avatar
  • Badge
  • Card
  • Carousel
  • Chart Bubble
  • Collapse
  • Countdown
  • Diff
  • Kbd
  • Stats
  • Table
  • Timeline
Navigation:
  • Bottom Navigation
  • Breadcrumbs
  • Link
  • Menu
  • Navbar
  • Pagination
  • Steps
  • Tabs
Feedback:
  • Alert
  • Loading
  • Progress
  • Radial Progress
  • Skeleton
  • Toast
  • Tooltip
Data Input:
  • Checkbox
  • FileInput
  • Input
  • Radio
  • Range
  • Rating
  • Select
  • Textarea
  • Toggle
Layout:
  • Artboard
  • Button Group (Deprecated)
  • Divider
  • Drawer
  • Footer
  • Hero
  • Indicator
  • Input Group (Deprecated)
  • Join (group items)
  • Mask
  • Stack
Mockup:
  • Browser
  • Code
  • Phone
  • Window

🤝 Contributing

We're looking for contributors to help write stories and unit tests for components.

Creating new components

Run npm run generate component ${your_new_component_name}. The generator will ask a few questions and setup the component for you.

When you'e done, export the component from index.tsx and open a PR.

Creating new stories

Check out the official daisyUI examples. 👈


License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

daisyUI components built with React 🌼

react.daisyui.com/

Topics

component-librarycomponentscsscss-componentscss-frameworkdaisyuidesign-systemslibrarypostcssreactreact-daisyuireactjstailwindtailwind-csstailwindcssui-designui-frameworkui-kitui-library

Resources

Readme
MIT license
Activity
Custom properties

Stars

1.1k stars

Watchers

8 watching

Forks

123 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.