Skip to content

Tailwind warning for leading-[5rem] in TypingAnimation component #882

@1chooo

Description

@1chooo

Hi

While installing and using the TypingAnimation component, I noticed a warning related to Tailwind CSS class usage.

The component uses the following class:

leading-[5rem]

However, my editor / Tailwind IntelliSense suggests that this can be simplified to:

leading-20

with the message:

The class leading-[5rem] can be written as leading-20

I wanted to ask:

  • Is the use of leading-[5rem] intentional here?
  • Should this be updated to leading-20 to align with Tailwind’s recommended utilities, or is there a specific reason to keep the arbitrary value?

Happy to submit a PR or help update the documentation if needed.
Thanks for the great component!

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