MCPcopy Create free account
hub / github.com/pacexy/flow / IconButton

Function IconButton

apps/reader/src/components/Button.tsx:10–22  ·  view source on GitHub ↗
({
  className,
  Icon,
  size = 16,
  ...props
}: IconButtonProps)

Source from the content-addressed store, hash-verified

8 size?: number
9}
10export function IconButton({
11 className,
12 Icon,
13 size = 16,
14 ...props
15}: IconButtonProps) {
16 return (
17 <button className={clsx('relative block p-0.5', className)} {...props}>
18 <StateLayer />
19 <Icon size={size} />
20 </button>
21 )
22}
23
24const variantMap = {
25 primary: 'bg-primary-container text-on-primary-container',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected