We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add support for mixin with twind/style, the same as in stitches
import { style } from "twind/style"; const blockMixin = style({ base: "block w-full", variants: { inline: "inline-block w-auto" } }); const Button = const Button = styled("button", blockMixin, { base: ` appearance-none border-none bg-transparent rounded-full px-2.5 `, variants: { size: { sm: `text-sm h-6`, md: `text-base h-9`, }, variant: { gray: ` bg-gray-500 hover:bg-gray-600 `, primary: ` text-white bg-purple-500 hover:bg-purple-600 `, }, outlined: { true: `bg-transparent ring-1`, }, }, defaults: { variant: "gray", size: "sm", }, matches: [ { variant: "gray", outlined: true, use: `ring-gray-500`, }, { variant: "primary", outlined: true, use: `text-purple-500 ring-gray-500 hover:text-white`, }, ], })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Add support for mixin with twind/style, the same as in stitches
The text was updated successfully, but these errors were encountered: