feat: add disabled color

This commit is contained in:
p-sw 2024-06-28 12:08:01 +09:00
parent 180cae69af
commit fd7317e597

View File

@ -2,6 +2,7 @@ import React from "react";
import { vcn, VariantProps, Slot, AsChild } from "@pswui-lib";
const colors = {
disabled: "disabled:brightness-50 disabled:cursor-not-allowed disabled:opacity-50 disabled:saturate-50",
outline: {
focus: "dark:focus-visible:outline-white/20 focus-visible:outline-black/10",
},
@ -26,7 +27,7 @@ const colors = {
};
const [buttonVariants, resolveVariants] = vcn({
base: `w-fit flex flex-row items-center justify-between rounded-md outline outline-1 outline-transparent outline-offset-2 ${colors.outline.focus} transition-all cursor-pointer`,
base: `w-fit flex flex-row items-center justify-between rounded-md outline outline-1 outline-transparent outline-offset-2 ${colors.outline.focus} ${colors.disabled} transition-all cursor-pointer`,
variants: {
size: {
link: "p-0 text-base",