Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classname support for tailwind #170

Open
aaly00 opened this issue Nov 24, 2024 · 1 comment
Open

Classname support for tailwind #170

aaly00 opened this issue Nov 24, 2024 · 1 comment

Comments

@aaly00
Copy link

aaly00 commented Nov 24, 2024

Describe the bug
I can't seem to be able to use className prop for styling to be able to style using tailwind.

It looks like the component has as set of base styles which are overriding my styling
image

To Reproduce

 <RichTextarea
        style={{
          maxHeight: 100,
        }}
        className={cn(
          "flex min-h-10 w-full resize-none bg-white px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
          "overflow-hidden",
          className,
        )}
        ref={ref}
        {...props}
      />

Expected behavior
Element to render with styling applied.

Platform:

  • OS: macOS
  • Browser: chrome
  • Version of this package: 0.26.4

Additional context
Add any other context about the problem here.

@A1X5H04
Copy link

A1X5H04 commented Dec 20, 2024

This may be your configuration issue, since it's just a simple textarea under the hood, check if the component is properly included into the 'content' property in tailwind.config.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants