MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / Chip

Function Chip

src/Components/DataPoints/RecordTable.jsx:61–82  ·  view source on GitHub ↗
({label, colors, onClick, title})

Source from the content-addressed store, hash-verified

59}
60
61function Chip({label, colors, onClick, title}) {
62 const style = {backgroundColor: colors.bg, color: colors.fg};
63 if (onClick) {
64 return (
65 <button
66 type="button"
67 className="rt-chip rt-chip-click"
68 style={style}
69 onClick={onClick}
70 title={title}
71 aria-label={title || label}
72 >
73 {label}
74 </button>
75 );
76 }
77 return (
78 <span className="rt-chip" style={style} title={title}>
79 {label}
80 </span>
81 );
82}
83
84/* --------------------------- sorting comparator -------------------------- */
85

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected