MCPcopy
hub / github.com/plouc/nivo / useInheritedColor

Function useInheritedColor

packages/colors/src/inheritedColor.ts:129–132  ·  view source on GitHub ↗
(
    config: InheritedColorConfig<Datum>,
    theme?: Theme
)

Source from the content-addressed store, hash-verified

127}
128
129export const useInheritedColor = <Datum = any>(
130 config: InheritedColorConfig<Datum>,
131 theme?: Theme
132) => useMemo(() => getInheritedColorGenerator<Datum>(config, theme), [config, theme])

Callers 15

ArcsLayerFunction · 0.90
useArcLinkLabelsFunction · 0.90
useArcLabelsFunction · 0.90
ArcLabelsLayerFunction · 0.90
InnerChordCanvasFunction · 0.90
ChordArcs.tsxFile · 0.90
ChordLabels.tsxFile · 0.90
ChordRibbons.tsxFile · 0.90
useCellsStyleFunction · 0.90
useIcicleFunction · 0.90
useNodeStyleFunction · 0.90

Calls 1

Tested by

no test coverage detected