import * as React from "react"; import { Story, Meta } from "@storybook/react"; import { SegmentedControl } from "../index"; import SegmentedControlButton from "../components/SegmentedControlButton"; import SegmentedControlStoryHelper from "./helpers/SegmentedControlStoryHelper"; import { Icon } from "../../icon"; import { SystemIcons } from "../../icons/dist/system-icons-enum"; export default { title: "Forms/SegmentedControl", component: SegmentedControl } as Meta; const Template: Story = args => ( {({ changeHandler, selectedSegment }) => ( Exosphere Thermosphere Mesosphere Stratosphere )} ); export const Default = Template.bind({}); export const WithASelectedSegment = () => ( {({ changeHandler, selectedSegment }) => ( Exosphere Thermosphere Mesosphere Stratosphere )} ); export const IconOnlyButtonLabels = () => ( {({ changeHandler, selectedSegment }) => ( )} ); export const WithTooltipContent = () => ( {({ changeHandler, selectedSegment }) => ( )} ); export const CustomSegmentedControlButtonIdProp = () => ( {({ changeHandler, selectedSegment }) => ( Exosphere Thermosphere Mesosphere Stratosphere )} );