Skip to content

Styling: Component Styling via Tailwind #4548

@JulianBu

Description

@JulianBu

Which generators are affected?

  • All
  • HTML
  • React
  • Angular
  • Vue
  • Web components
  • Power Apps

Reproduction case

We’ve observed that applying Tailwind styles through the className prop is frequently ineffective or unsupported by certain components. Sometimes we are forced to use a div as a wrapper for DB UX Components.
For example:

<div className="mx-[16px] flex h-[32px] items-center justify-center">
    <DBDivider variant="vertical" margin="none" width="full" />
</div>

Expected Behaviour

The expected behavior would be to ensure that we can use the className Prop and put Tailwind syntax into.
Like:

 <DBDivider 
    className="mx-[16px] flex h-[32px] items-center justify-center" 
    variant="vertical" 
    margin="none" 
    width="full" 
/>

Screenshots

No response

Browser version

Chrome

Add any other context about the problem here.

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions