mirror of
https://github.com/zhigang1992/react.git
synced 2026-02-02 09:08:52 +08:00
docs(input): add docs for iconRight
This commit is contained in:
@@ -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" />
|
||||
</>
|
||||
`} />
|
||||
|
||||
|
||||
@@ -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 地址" />
|
||||
</>
|
||||
`} />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user