2020-02-13 23:43:20 +01:00
|
|
|
---
|
|
|
|
|
name: Input
|
|
|
|
|
menu: Components
|
|
|
|
|
route: components/input
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
import { Playground, Props } from 'docz';
|
|
|
|
|
import Input from './';
|
|
|
|
|
|
|
|
|
|
# Input
|
|
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
|
|
|
|
|
<Props of={Input} />
|
|
|
|
|
|
|
|
|
|
## Basic usage
|
|
|
|
|
|
|
|
|
|
<Playground>
|
|
|
|
|
{() => {
|
|
|
|
|
const [inputValue, setInputValue] = React.useState('');
|
|
|
|
|
return (
|
2020-02-25 23:00:33 +01:00
|
|
|
<div>
|
2020-02-14 00:14:59 +01:00
|
|
|
<Input
|
|
|
|
|
transparent
|
|
|
|
|
containerClassName="mb-3"
|
|
|
|
|
label="Label"
|
|
|
|
|
placeholder="With Label"
|
|
|
|
|
/>
|
|
|
|
|
<Input placeholder="Without label" />
|
|
|
|
|
</div>
|
2020-02-13 23:43:20 +01:00
|
|
|
);
|
|
|
|
|
}}
|
|
|
|
|
</Playground>
|