Function
ColorSquare
({ children, className, color }: ColorSquareProps)
Source from the content-addressed store, hash-verified
| 4 | type ColorSquareProps = HtmlProps<HTMLDivElement>; |
| 5 | |
| 6 | export function ColorSquare({ children, className, color }: ColorSquareProps) { |
| 7 | return ( |
| 8 | <div |
| 9 | className={cn( |
| 10 | 'flex h-5 w-5 flex-shrink-0 items-center justify-center rounded bg-blue-600 text-sm font-medium text-white [.mini_&]:h-4 [.mini_&]:w-4 [.mini_&]:text-[0.6rem] font-mono', |
| 11 | className, |
| 12 | )} |
| 13 | style={{ backgroundColor: color }} |
| 14 | > |
| 15 | {children} |
| 16 | </div> |
| 17 | ); |
| 18 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected