import * as React from "react"; import { Story, Meta } from "@storybook/react"; import { BadgeButton, ColorCodedBadge } from "../../index"; import { ColorCodedBadgeProps } from "../components/ColorCodedBadge"; import { systemIconLabels, systemIcons } from "../../storybookHelpers/controlConstants"; import { textColorPrimary } from "../../design-tokens/build/js/designTokens"; export default { title: "Graphic Elements/ColorCodedBadge", component: ColorCodedBadge, subcomponents: { BadgeButton }, argTypes: { color: { control: { type: "color" } }, iconShape: { options: systemIcons, control: { type: "select" }, mapping: systemIconLabels } } } as Meta; ColorCodedBadge.displayName = "ColorCodedBadge"; const Template: Story = args => ( Color Coded Badge ); export const Default = Template.bind({}); Default.args = { color: textColorPrimary };