docs/developer_docs/components/ui/infotooltip.mdx
import { StoryWithControls } from '../../../src/components/StorybookWrapper';
The InfoTooltip component from Superset's UI library.
<StoryWithControls component="InfoTooltip" props={{ tooltip: "This is the text that will display!" }} controls={[ { name: "tooltip", label: "Tooltip", type: "text" }, { name: "placement", label: "Placement", type: "select", options: [ "bottom", "left", "right", "top", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom" ] }, { name: "trigger", label: "Trigger", type: "select", options: [ "hover", "click" ] } ]} />
Edit the code below to experiment with the component:
function Demo() {
return (
<InfoTooltip
tooltip="This is the text that will display!"
/>
);
}
| Prop | Type | Default | Description |
|---|---|---|---|
tooltip | string | "This is the text that will display!" | - |
import { InfoTooltip } 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. :::