docs(input): add docs for iconRight

This commit is contained in:
unix
2020-05-16 22:55:17 +08:00
parent c6464409c4
commit 372b413ca6
2 changed files with 7 additions and 3 deletions

View File

@@ -105,10 +105,12 @@ Retrieve text input from a user.
<Playground
title="Icon"
desc="Specify an icon component."
scope={{ Input, GitIcon }}
scope={{ Input, GitIcon, Spacer }}
code={`
<>
<Input icon={<GitIcon />} placeholder="The Evil Rabbit" />
<Input icon={<GitIcon />} placeholder="GitHub" />
<Spacer y={.5} />
<Input iconRight={<GitIcon />} placeholder="GitHub" />
</>
`} />

View File

@@ -105,10 +105,12 @@ export const meta = {
<Playground
title="图标"
desc="指定一个图标组件。"
scope={{ Input, GitIcon }}
scope={{ Input, GitIcon, Spacer }}
code={`
<>
<Input icon={<GitIcon />} placeholder="输入 Git 地址" />
<Spacer y={.5} />
<Input iconRight={<GitIcon />} placeholder="输入 Git 地址" />
</>
`} />