-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Input): update states to v1 API
- Loading branch information
1 parent
aae0eeb
commit d532e7a
Showing
7 changed files
with
86 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from 'react' | ||
import { Input } from 'stardust' | ||
|
||
const InputLeftLoading = () => ( | ||
<Input loading icon='user' iconPosition='left' placeholder='Search...' /> | ||
) | ||
|
||
export default InputLeftLoading |
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
10 changes: 5 additions & 5 deletions
10
docs/app/Examples/elements/Input/Variations/InputActionExtra.js
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import React from 'react' | ||
import { Button, Input } from 'stardust' | ||
|
||
const action = ( | ||
<Button labeled color='teal' icon='cart'> | ||
const actions = [ | ||
<Button childKey='button' labeled color='teal' icon='cart'> | ||
Checkout | ||
</Button> | ||
) | ||
</Button>, | ||
] | ||
|
||
const InputActionExtra = () => ( | ||
<Input action={action} actionPosition='left' placeholder='$23.43' /> | ||
<Input actions={actions} actionsPosition='left' placeholder='$23.43' /> | ||
) | ||
|
||
export default InputActionExtra |
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