import React from "react"; import { OverlaysProvider } from "@blueprintjs/core"; import { LogoReact } from "@carbon/icons-react"; import { Meta, StoryFn } from "@storybook/react"; import { IconButton, TestIcon } from "../../../components"; import buttonStory from "./../../Button/Button.stories"; import canonicalIcons from "./../canonicalIconNames"; export default { title: "Components/IconButton", component: IconButton, argTypes: { name: { control: "select", options: ["Test icon", ...Object.keys(canonicalIcons)], mapping: { "Test icon": , ...Object.keys(canonicalIcons), }, }, intent: buttonStory.argTypes?.intent, }, } as Meta; const Template: StoryFn = (args) => ( ); export const Default = Template.bind({}); Default.args = { name: "item-moremenu", text: "Tooltip text", };