mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-28 00:08:21 -05:00
* feat(claude): added rules * fix(copilot): chat loading; refactor(copilot): components, utils, hooks * fix(copilot): options selection strikethrough * fix(copilot): options render inside thinking * fix(copilot): checkpoints, user-input; improvement(code): colors * fix(copilot): scrolling, tool-call truncation, thinking ui * fix(copilot): tool call spacing and shimmer/actions on previous messages * improvement(copilot): queue * addressed comments
822 B
822 B
paths
| paths | |
|---|---|
|
EMCN Components
Import from @/components/emcn, never from subpaths (except CSS files).
CVA vs Direct Styles
Use CVA when: 2+ variants (primary/secondary, sm/md/lg)
const buttonVariants = cva('base-classes', {
variants: { variant: { default: '...', primary: '...' } }
})
export { Button, buttonVariants }
Use direct className when: Single consistent style, no variations
function Label({ className, ...props }) {
return <Primitive className={cn('style-classes', className)} {...props} />
}
Rules
- Use Radix UI primitives for accessibility
- Export component and variants (if using CVA)
- TSDoc with usage examples
- Consistent tokens:
font-medium,text-[12px],rounded-[4px] transition-colorsfor hover states