Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
import { cva } from "class-variance-authority";
export const pillVariants = cva(
"inline-flex h-9 shrink-0 items-center gap-2 whitespace-nowrap rounded-full px-3.5 text-sm ring-1 ring-inset transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
{
variants: {
selected: {
true: "bg-sidebar-accent text-sidebar-accent-foreground ring-button-outline",
false: "text-muted-foreground ring-transparent hover:bg-sidebar-accent",
},
},
defaultVariants: {
selected: false,
},
},
);