MCPcopy Create free account
hub / github.com/dailydotdev/apps / Pill

Function Pill

packages/shared/src/components/Pill.tsx:25–46  ·  view source on GitHub ↗
({
  label,
  tag: Tag = 'div',
  size = PillSize.Medium,
  alignment = 'self-start',
  className,
  ...props
}: PillProps)

Source from the content-addressed store, hash-verified

23};
24
25export const Pill = ({
26 label,
27 tag: Tag = 'div',
28 size = PillSize.Medium,
29 alignment = 'self-start',
30 className,
31 ...props
32}: PillProps): ReactElement => {
33 return (
34 <Tag
35 {...props}
36 className={classNames(
37 alignment,
38 pillSizeToClassName[size],
39 'inline-flex items-center',
40 className,
41 )}
42 >
43 {label}
44 </Tag>
45 );
46};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected