-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(core): improve the docs of the input field components
- Loading branch information
Showing
10 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
apps/docs/src/app/_components/playground/form/inputNumber/inputNumberPrefix.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { InputNumber } from '@pillar-ui/core' | ||
import { User } from '@pillar-ui/icons' | ||
import React from 'react' | ||
|
||
export const InputNumberPrefix = () => { | ||
return ( | ||
<> | ||
<InputNumber aria-label="hello" placeholder="Placeholder" /> | ||
<InputNumber aria-label="hello" prefixInput={<User width="16" />} placeholder="Placeholder" /> | ||
<InputNumber aria-label="hello" prefixInput={'https://'} /> | ||
</> | ||
) | ||
} |
13 changes: 13 additions & 0 deletions
13
apps/docs/src/app/_components/playground/form/inputPassword/inputPasswordPrefix.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { InputPassword } from '@pillar-ui/core' | ||
import { User } from '@pillar-ui/icons' | ||
import React from 'react' | ||
|
||
export const InputPasswordPrefix = () => { | ||
return ( | ||
<> | ||
<InputPassword aria-label="hello" placeholder="Placeholder" /> | ||
<InputPassword aria-label="hello" prefixInput={<User width="16" />} placeholder="Placeholder" /> | ||
<InputPassword aria-label="hello" prefixInput={'https://'} /> | ||
</> | ||
) | ||
} |
13 changes: 13 additions & 0 deletions
13
apps/docs/src/app/_components/playground/form/inputSearch/inputSearchPrefix.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { InputSearch } from '@pillar-ui/core' | ||
import { User } from '@pillar-ui/icons' | ||
import React from 'react' | ||
|
||
export const InputSearchPrefix = () => { | ||
return ( | ||
<> | ||
<InputSearch aria-label="hello" placeholder="Placeholder" /> | ||
<InputSearch aria-label="hello" prefixInput={<User width="16" />} placeholder="Placeholder" /> | ||
<InputSearch aria-label="hello" prefixInput={'https://'} /> | ||
</> | ||
) | ||
} |
12 changes: 12 additions & 0 deletions
12
apps/docs/src/app/_components/playground/form/inputSearch/inputSearchSuffix.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Button, InputSearch } from '@pillar-ui/core' | ||
import { User } from '@pillar-ui/icons' | ||
import React from 'react' | ||
|
||
export const InputSearchSuffix = () => { | ||
return ( | ||
<> | ||
<InputSearch aria-label="hello" suffixInput={<User width="16" />} placeholder="Placeholder" /> | ||
<InputSearch aria-label="hello" suffixInput=".com" /> | ||
</> | ||
) | ||
} |
13 changes: 13 additions & 0 deletions
13
apps/docs/src/app/_components/playground/form/textarea/textareaPrefix.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Textarea } from '@pillar-ui/core' | ||
import { User } from '@pillar-ui/icons' | ||
import React from 'react' | ||
|
||
export const TextareaPrefix = () => { | ||
return ( | ||
<> | ||
<Textarea aria-label="hello" placeholder="Placeholder" /> | ||
<Textarea aria-label="hello" prefixInput={<User width="16" />} placeholder="Placeholder" /> | ||
<Textarea aria-label="hello" prefixInput={'https://'} /> | ||
</> | ||
) | ||
} |
12 changes: 12 additions & 0 deletions
12
apps/docs/src/app/_components/playground/form/textarea/textareaSuffix.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Textarea } from '@pillar-ui/core' | ||
import { User } from '@pillar-ui/icons' | ||
import React from 'react' | ||
|
||
export const TextareaSuffix = () => { | ||
return ( | ||
<> | ||
<Textarea aria-label="hello" suffixInput={<User width="16" />} placeholder="Placeholder" /> | ||
<Textarea aria-label="hello" suffixInput=".com" /> | ||
</> | ||
) | ||
} |