-
Notifications
You must be signed in to change notification settings - Fork 8
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
refactor(tag): ♻️ improve tag component #43
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/timelessco/renderlesskit-react-tailwind/idk3cbno6 |
xs: "inherit mr-1.5 text-xs", | ||
sm: "inherit mr-2 text-xs", | ||
lg: "inherit mr-2 text-base", | ||
}, | ||
suffix: { | ||
xs: "inherit ml-1.5 text-xs", | ||
sm: "inherit ml-2 text-xs", | ||
lg: "inherit ml-2 text-base", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per design, different icon & spacing based on size.
xs: | ||
"lib:h-6 lib:w-auto lib:min-w-6 lib:px-2 lib:text-xs lib:rounded-md lib:font-medium", | ||
sm: | ||
"lib:h-8 lib:w-auto lib:min-w-8 lib:px-3 lib:text-sm lib:rounded-md lib:font-medium", | ||
lg: | ||
"lib:h-10 lib:w-auto lib:min-w-10 lib:px-4 lib:text-sm lib:rounded-lg lib:font-medium", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved all the size related classes from base to here.
We can remove the repeated one's after we the states design(disabled, active etc.,)
No description provided.