MCPcopy Index your code
hub / github.com/adobe/react-spectrum / composeTailwindRenderProps

Function composeTailwindRenderProps

starters/tailwind/src/utils.ts:15–20  ·  view source on GitHub ↗
(
  className: string | ((v: T) => string) | undefined,
  tw: string
)

Source from the content-addressed store, hash-verified

13});
14
15export function composeTailwindRenderProps<T>(
16 className: string | ((v: T) => string) | undefined,
17 tw: string
18): string | ((v: T) => string) {
19 return composeRenderProps(className, className => twMerge(tw, className));
20}

Callers 15

MyToastFunction · 0.90
DisclosurePanelFunction · 0.90
ListBoxFunction · 0.90
ColorAreaFunction · 0.90
NumberFieldFunction · 0.90
SliderFunction · 0.90
TextFieldFunction · 0.90
CalendarFunction · 0.90
DateFieldFunction · 0.90
RadioGroupFunction · 0.90
RadioFunction · 0.90
DatePickerFunction · 0.90

Calls 1

composeRenderPropsFunction · 0.85

Tested by

no test coverage detected