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

Function Button

apps/reader/src/components/Button.tsx:33–50  ·  view source on GitHub ↗
({
  variant = 'primary',
  compact = false,
  className,
  ...props
})

Source from the content-addressed store, hash-verified

31 compact?: boolean
32}
33export const Button: React.FC<ButtonProps> = ({
34 variant = 'primary',
35 compact = false,
36 className,
37 ...props
38}) => {
39 return (
40 <button
41 className={clsx(
42 'typescale-label-large disabled:bg-disabled disabled:text-on-disabled',
43 variantMap[variant],
44 compact ? 'px-2 py-1' : 'px-3 py-1.5',
45 className,
46 )}
47 {...props}
48 />
49 )
50}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected