import React from "react"; import { LogoReact } from "@carbon/icons-react"; import { Meta, StoryFn } from "@storybook/react"; import { helpersArgTypes } from "../../../.storybook/helpers"; import { Badge, Icon, TestIcon } from "../../components"; export default { title: "Components/Badge", component: Badge, argTypes: { children: { control: "select", options: ["Number", "Text", "Named icon", "Test icon"], mapping: { Number: 123123, Text: "Label text", "Named icon": , "Test icon": , }, }, intent: { ...helpersArgTypes.exampleIntent, }, }, } as Meta; const TemplateFull: StoryFn = (args) => (
Element area
); export const FullExample = TemplateFull.bind({}); FullExample.args = { children: "123", }; export const WithTitletip = TemplateFull.bind({}); WithTitletip.args = { position: "bottom-right", children: 1000, maxLength: 3, intent: "info", tagProps: { htmlTitle: "1000 messages available" }, };