-
Notifications
You must be signed in to change notification settings - Fork 304
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
fix: add whitespace-nowrap for Button, Select, Tab #266
fix: add whitespace-nowrap for Button, Select, Tab #266
Conversation
I'm also working on refactoring components in this PR #241 which I handle button Other changes are nice |
I read about |
The way you handle is ok, If you don't see the Vite overlay screen while you working on the Button in localhost Individual Props types in defineProps macro ✅ https://github.com/joe-bell/cva/blob/main/examples/vue/src/components/Button.vue Entire Prop type Object in defineProps macro ❌ not yet supported in Vue |
@sadeghbarati need some advice from you, as I mentioned in this comment to make this we need to use tailwind custom If thou, how it will be shown, don't know how to make it simple to reuse and understand, |
That is a demo, user can change the styles of their component But Yeah we can have truncate Line clamp is also like truncate but in Y-axis |
Yes, but what about custom TailwindCSS config grid cols, I can add them? |
Do you want to use it in Buttons Source (Registry Styles) or Demos? |
I'm not a CSS Grid ninja but let's keep |
Ahaha, I will try to explain this) when we have fixed block with, for example, width of 180px If you are assured that we can't use P.S. About minmax magic I learned from official TailwindCSS docs, where they use them by default for |
Sorry for some misinformation, just googled some examples, and it can be fixed by Ref: https://css-tricks.com/flexbox-truncated-text/ |
https://twitter.com/t3dotgg/status/1745358867243171939 I'm with First person who tweeted this was Adam Wathan Thanks for the time I'll check your PR next day |
Just saw this in my feed 5 mins ago 😂 |
@sadeghbarati PR is ready for review, added |
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.
Thanks 🫡
This PR will add
whitespace-nowrap
class for Button, Select, Tab components, so there will be no overlapping when resizing, mentioned in #199Also in this PR I refactored Button component Props to use
VariantProps
generic insteadNonNullable<Parameters<typeof buttonVariants>>