All snippets
Button variants
One recipe with two intents and two sizes, resolved from a map of classNames.
final button = WindRecipe(
base: 'inline-flex items-center rounded-lg font-medium',
variants: {
'intent': {
'primary': 'bg-blue-600 dark:bg-blue-500 text-white',
'ghost': 'bg-transparent text-blue-600 dark:text-blue-400',
},
'size': {
'sm': 'px-3 py-1.5 text-sm',
'md': 'px-4 py-2 text-base',
},
},
defaultVariants: {'intent': 'primary', 'size': 'md'},
);