-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
feat: set Checkbox component for ShadCN #13441
feat: set Checkbox component for ShadCN #13441
Conversation
✅ Deploy Preview for ethereumorg canceled.
|
plugins: [require("tailwindcss-animate")], | ||
plugins: [ | ||
require("tailwindcss-animate"), | ||
plugin(function ({ matchVariant }) { |
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.
This plugin creates a custom modifier for the :not()
pseudo. It allows for either...
An arbitrary variant
/* "not-[:checked]:bg-primary" */
.not-\[\:checked\]\:bg-primary:not(:checked) {
background-color: var(--primary);
}
Or a specifically defined variant, such as disabled
here
/* not-disabled:bg-primary */
.not-disabled\:bg-primary:not(:disabled) {
background-color: var(--primary);
}
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.
LGTM
Description
Set up the Checkbox component for ShadCN/Tailwind