Skip to content

AI-native design editor. Open-source Figma alternative.

625 B
Raw Blame
export default {
  base: 'flex h-7 cursor-pointer items-center gap-1.5 rounded border-none px-3 text-2xs font-medium transition-colors outline-none focus-visible:ring-1 focus-visible:ring-panel-focus',
  variants: {
    connection: {
      idle: 'bg-accent text-on-accent hover:bg-accent/90',
      joining:
        'animate-pulse motion-reduce:animate-none border border-warning-border bg-warning-bg text-warning',
      // Still a share action when connected; your avatar shows the room is live.
      connected: 'bg-accent text-on-accent hover:bg-accent/90'
    }
  },
  defaultVariants: { connection: 'idle' }
} as const