docs/developer_docs/components/ui/icontooltip.mdx
import { StoryWithControls } from '../../../src/components/StorybookWrapper';
The IconTooltip component from Superset's UI library.
<StoryWithControls component="IconTooltip" props={{ tooltip: "Tooltip" }} controls={[ { name: "tooltip", label: "Tooltip", type: "text", description: "Text content to display in the tooltip." }, { name: "placement", label: "Placement", type: "select", options: [ "bottom", "bottomLeft", "bottomRight", "left", "leftBottom", "leftTop", "right", "rightBottom", "rightTop", "top", "topLeft", "topRight" ], description: "Position of the tooltip relative to the icon." } ]} sampleChildren={[{"component":"Icons.InfoCircleOutlined","props":{"iconSize":"l"}}]} />
Edit the code below to experiment with the component:
function Demo() {
return (
<IconTooltip tooltip="Helpful information">
<Icons.InfoCircleOutlined iconSize="l" />
</IconTooltip>
);
}
| Prop | Type | Default | Description |
|---|---|---|---|
tooltip | string | "Tooltip" | Text content to display in the tooltip. |
import { IconTooltip } from '@superset/components';
:::tip[Improve this page] This documentation is auto-generated from the component's Storybook story. Help improve it by editing the story file. :::