main
| 1 | import { Tooltip } from "@medusajs/ui" |
| 2 | import { InformationCircleSolid } from "@medusajs/icons" |
| 3 | |
| 4 | export default function TooltipMaxWidth() { |
| 5 | return ( |
| 6 | <Tooltip |
| 7 | content="This is a very long tooltip message that demonstrates how you can use the maxWidth prop to control the width of the tooltip." |
| 8 | maxWidth={320} |
| 9 | className="text-center" |
| 10 | > |
| 11 | <InformationCircleSolid /> |
| 12 | </Tooltip> |
| 13 | ) |
| 14 | } |