import React from "react"; import { Meta, StoryFn } from "@storybook/react"; import png16to9 from "../../Depiction/stories/test-16to9.png"; import { Depiction, Icon, OverviewItem, OverviewItemDepiction } from "./../../../components"; import { FullExample as DepictionExample } from "./../../Depiction/stories/Depiction.stories"; export default { title: "Components/OverviewItem/OverviewItemDepiction", component: OverviewItemDepiction, subcomponents: { Icon }, argTypes: { children: { control: "none", description: "Element used as depiction.", }, }, } as Meta; const Template: StoryFn = (args) => ( ); /** * If a `` is used as only content then it is returned directly by ``. */ export const UseDepictionElement = Template.bind({}); UseDepictionElement.args = { children: , }; /** * If an `` (or ``) is used as only content for `` then it returns automatically a `` element setting the `image` property to that icon. */ export const AutoTransform = Template.bind({}); AutoTransform.args = { children: ( <> ), }; /** * For all other content the `` wrapper is set around it to keep it in the allowed size. This works mainly for image content. */ export const Default = Template.bind({}); Default.args = { children: , };