Skip to content

Classname support for tailwind  #170

Open
@aaly00

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions