Slide 13
Slide 13 text
variantsによって切り替えたいものはTailwind Variantsがおすすめ
import { tv } from 'tailwind-variants';
const button = tv({
base: 'px-4 py-2 font-semibold',
variants: {
color: {
primary: 'bg-blue-500 text-white',
secondary: 'bg-gray-500 text-black',
},
},
});
Primary Button
13