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

Function Pill

packages/shared/src/components/plus/PlusFeedBannerScenes.tsx:79–97  ·  view source on GitHub ↗
({
  accent,
  children,
}: {
  accent?: PlusBannerAccent;
  children: ReactNode;
})

Source from the content-addressed store, hash-verified

77);
78
79const Pill = ({
80 accent,
81 children,
82}: {
83 accent?: PlusBannerAccent;
84 children: ReactNode;
85}): ReactElement => (
86 <span
87 className={classNames(
88 'flex h-5 shrink-0 items-center gap-1 rounded-6 px-1.5 transition-colors duration-300 typo-caption2',
89 accent
90 ? 'plus-banner-tint-chip font-bold'
91 : 'bg-surface-float text-text-secondary',
92 )}
93 style={accentStyle(accent)}
94 >
95 {children}
96 </span>
97);
98
99interface CardProps {
100 source?: string;

Callers

nothing calls this directly

Calls 1

accentStyleFunction · 0.85

Tested by

no test coverage detected