MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Toolbar

Function Toolbar

starters/tailwind/src/Toolbar.tsx:18–29  ·  view source on GitHub ↗
(props: ToolbarProps)

Source from the content-addressed store, hash-verified

16});
17
18export function Toolbar(props: ToolbarProps) {
19 return (
20 <ToggleButtonGroupContext.Provider value={{orientation: props.orientation}}>
21 <RACToolbar
22 {...props}
23 className={composeRenderProps(props.className, (className, renderProps) =>
24 styles({...renderProps, className})
25 )}
26 />
27 </ToggleButtonGroupContext.Provider>
28 );
29}

Callers

nothing calls this directly

Calls 1

composeRenderPropsFunction · 0.85

Tested by

no test coverage detected