formSelectField.stories.mdx

PHOTO EMBED

Mon Mar 25 2024 17:13:16 GMT+0000 (Coordinated Universal Time)

Saved by @rafal_rydz

import {FormSelectField} from "ui";
import {ArgsTable, Meta, Story} from "@storybook/addon-docs";

<Meta title="Components/Inputs/FormSelectField/old" component={FormSelectField}/>

export const Template = (args) => <FormSelectField {...args} />;

# FormSelectField

This component renders an FormSelectField.

## Props

<ArgsTable story="Default"/>

## Examples

<Story
    name="Default"
    args={{
        id: "example",
        label: "Label",
        labelIcon: "home",
        action: () => {
        },
        defaultValue: "",
        selectGroup: [
            {id: "1", value: "Option1"},
            {id: "2", value: "Option2"},
            {id: "3", value: "Option3"},
        ],
        required: true,
        disabled: false,
        caption: "",
    }}
>
    {Template.bind({})}
</Story>
content_copyCOPY