initial structure for components rewrite
This commit is contained in:
1 parent
944afe4a3e
commit
c391c007ff
284 files changed
+68087
-17215
No files matched your search
@@ -0,0 +1,30 @@
|
||||
---
|
||||
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 (
|
||||
<Input
|
||||
label="Label"
|
||||
value={inputValue}
|
||||
placeholder="Type something..."
|
||||
onChange={e => setInputValue(e.target.value)}
|
||||
/>
|
||||
);
|
||||
}}
|
||||
</Playground>
|
||||
Reference in new issue
Block a user