Skip to content

Is there documentation for react-daisyui? #145

@nelsonlaidev

Description

@nelsonlaidev

Thanks for this amazing library ❤️

UPDATED: I misunderstand that it is an official library

I don't know how to use react-daisyui + daisyui + Tailwindcss in Next.js

When I try to use them, the CSS of daisyui is not loaded.

I found a tutorial before that I need to add 'node_modules/react-daisyui/dist/react-daisyui.cjs', to tailwind config content.

After doing that it works, but there are some problems.
The CSS of class btn-ghost is not loaded.

My code:

import { Button } from 'react-daisyui'

export default function Test() {
    return (
        <Button color="ghost">Test</Button>
    )
}

Snipaste_2022-06-27_19-07-46

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions