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

Function Example

starters/tailwind/stories/Tooltip.stories.tsx:18–33  ·  view source on GitHub ↗
(args: any)

Source from the content-addressed store, hash-verified

16export default meta;
17
18export const Example = (args: any) => (
19 <div className="flex gap-2">
20 <TooltipTrigger>
21 <Button variant="secondary" className="px-2">
22 <SaveIcon className="w-5 h-5" />
23 </Button>
24 <Tooltip {...args}>Save</Tooltip>
25 </TooltipTrigger>
26 <TooltipTrigger>
27 <Button variant="secondary" className="px-2">
28 <PrinterIcon className="w-5 h-5" />
29 </Button>
30 <Tooltip {...args}>Print</Tooltip>
31 </TooltipTrigger>
32 </div>
33);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected