Preview:
import {If} from "ui";
import {ArgsTable, Canvas, Meta, Story} from "@storybook/addon-docs";

<Meta title="Components/Sections/If/old" component={If}/>

export const Template = (args) => (
    <If {...args}>Only shows when condition is true.</If>
);

# If

Description of a If

## Props

<ArgsTable story="Default"/>

## Examples

<Canvas>
    <Story
        name="Default"
        args={{
            condition: true,
        }}
    >
        {Template.bind({})}
    </Story>
</Canvas>
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter