mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-10 07:27:57 -05:00
* feat(tools): added sentry, incidentio, and posthog tools * update docs * fixed docs to use native fumadocs for llms.txt and copy markdown, fixed tool issues * cleanup * enhance error extractor, fixed posthog tools * docs enhancements, cleanup * added more incident io ops, remove zustand/shallow in favor of zustand/react/shallow * fix type errors * remove unnecessary comments * added vllm to docs
28 lines
1.0 KiB
TypeScript
28 lines
1.0 KiB
TypeScript
import { cva, type VariantProps } from 'class-variance-authority'
|
|
|
|
const variants = {
|
|
primary: 'bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80',
|
|
outline: 'border hover:bg-fd-accent hover:text-fd-accent-foreground',
|
|
ghost: 'hover:bg-fd-accent hover:text-fd-accent-foreground',
|
|
secondary:
|
|
'border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground',
|
|
} as const
|
|
|
|
export const buttonVariants = cva(
|
|
'inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring',
|
|
{
|
|
variants: {
|
|
variant: variants,
|
|
color: variants,
|
|
size: {
|
|
sm: 'gap-1 px-2 py-1.5 text-xs',
|
|
icon: 'p-1.5 [&_svg]:size-5',
|
|
'icon-sm': 'p-1.5 [&_svg]:size-4.5',
|
|
'icon-xs': 'p-1 [&_svg]:size-4',
|
|
},
|
|
},
|
|
}
|
|
)
|
|
|
|
export type ButtonProps = VariantProps<typeof buttonVariants>
|