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

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

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

# If

Description of a IfElse

## Props

<ArgsTable story="Default"/>

## Examples

<Canvas>
    <Story
        name="Default"
        args={{
            condition: true,
            elseChildren: "Else show this"
        }}
    >
        {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