mirror of
https://github.com/wassname/talk.git
synced 2026-08-14 12:50:17 +08:00
Use HorizontalGutter component, simplify Flex
This commit is contained in:
@@ -5,16 +5,16 @@ menu: UI Kit
|
||||
|
||||
import { Playground, PropsTable } from 'docz'
|
||||
import TextField from './TextField.tsx'
|
||||
import Flex from '../Flex'
|
||||
import HorizontalGutter from '../HorizontalGutter'
|
||||
|
||||
# TextField
|
||||
|
||||
## Basic Use
|
||||
<Playground>
|
||||
<Flex itemGutter direction="column">
|
||||
<HorizontalGutter>
|
||||
<TextField placeholder="This is a placeholder" />
|
||||
<TextField defaultValue="This is an input field" />
|
||||
<TextField color="error" defaultValue="A TextField with an error" />
|
||||
<TextField color="error" defaultValue="A TextField with an error" fullWidth/>
|
||||
</Flex>
|
||||
</HorizontalGutter>
|
||||
</Playground>
|
||||
|
||||
Reference in New Issue
Block a user