import { Canvas, Meta, ArgTypes } from '@storybook/blocks'; import { ThemeProvider } from 'styled-components'; import Crown from '../icons/Crown'; import Flex from '../Flex'; import Input from './'; import SearchInput from './SearchInput'; import { lightTheme } from '../../../theme/'; import { GlobalStyles } from '../../../theme/GlobalStyles'; import * as InputStories from './Input.stories.tsx'; # Input/SearchInput The Input component specifies an input field where the user can enter data. ## Importing ```javascript import { Input, SearchInput } from 'amazon-chime-sdk-component-library-react'; ``` ## Example ### Basic Input {}} sizing="md" value="input value" placeholder="input" type="text" /> ```jsx {}} sizing="md" value="input value" placeholder="input" type="text" /> ``` ### Input with Icon {}} value="icon input value" placeholder="input with an icon" sizing="sm" type="text" leadingIcon={} /> ```jsx {}} value="icon input value" placeholder="input with an icon" sizing="sm" type="text" leadingIcon={} /> ``` ### Search Input Component {}} placeholder="a search input" /> ```jsx {}} placeholder="a search input" /> ``` ## Props