MCPcopy Create free account
hub / github.com/callstack/react-native-paper / renderBadge

Function renderBadge

docs/src/components/PropTable.tsx:20–25  ·  view source on GitHub ↗
(annotation: string)

Source from the content-addressed store, hash-verified

18};
19
20const renderBadge = (annotation: string) => {
21 const [annotType, ...annotLabel] = annotation.split(' ');
22
23 // eslint-disable-next-line prettier/prettier
24 return `<span class="badge badge-${annotType.replace('@', '')} ">${annotLabel.join(' ')}</span>`;
25};
26
27export default function PropTable({
28 componentLink,

Callers 1

PropTableFunction · 0.70

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…