fix: add w-fit in base style

This commit is contained in:
p-sw 2024-05-24 22:21:20 +09:00
parent fd1c1ef0de
commit 10443da796

View File

@ -2,7 +2,7 @@ import React from "react";
import { vcn, VariantProps, Slot, AsChild } from "../shared"; import { vcn, VariantProps, Slot, AsChild } from "../shared";
const [buttonVariants, resolveVariants] = vcn({ const [buttonVariants, resolveVariants] = vcn({
base: "flex flex-row items-center justify-between rounded-md outline outline-1 outline-transparent outline-offset-2 focus-visible:outline-black/50 dark:focus-visible:outline-white/50 transition-all", base: "w-fit flex flex-row items-center justify-between rounded-md outline outline-1 outline-transparent outline-offset-2 focus-visible:outline-black/50 dark:focus-visible:outline-white/50 transition-all",
variants: { variants: {
size: { size: {
sm: "px-2 py-1 text-sm", sm: "px-2 py-1 text-sm",