2.0.28 ā€¢ Published 2 years ago

react-dculus-daisyui v2.0.28

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

NPM Version npm bundle size npm License Discord Invite

Dculus react-dculus-daisyui šŸŒ¼

DaisyUI components built with React, Typescript and TailwindCSS.

šŸ“– 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-dculus-daisyui

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

module.exports = {
  content: [],
  safelist: [
    {
      pattern: /./
    },
  ],
  ...
  plugins: [require("daisyui")],
}

āš” Quick Start

Import react-dculus-daisyui components within your component files:

import { Button } from 'react-dculus-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-dculus-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

  • Checkbox
  • Input
  • Radio
  • Range
  • Rating
  • Select
  • Textarea
  • Toggle
  • Artboard
  • Button-Group
  • Divider
  • Drawer
  • Footer
  • Hero
  • Indicator
  • Input Group
  • Mask
  • Stack
  • Breadcrumbs
  • Link
  • Menu
  • Navbar
  • Pagination
  • Steps
  • Tabs
  • 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.

2.0.28

2 years ago

2.0.27

2 years ago

2.0.26

2 years ago

2.0.24

2 years ago

2.0.23

2 years ago

2.0.22

2 years ago

2.0.21

2 years ago

2.0.20

2 years ago

2.0.18

2 years ago

2.0.16

2 years ago

2.0.15

2 years ago

2.0.14

2 years ago

2.0.13

2 years ago

2.0.12

2 years ago

2.0.11

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago