-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(inputfeedback): add separate component
- include documentation in styleguide - usage notes in Textarea
- Loading branch information
Showing
4 changed files
with
41 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### Minimal usage | ||
|
||
InputFeedback displays a feedback box. Its primary use is to facilitate feedback states for other Form components such as [Input](#input) or [Checkbox](#checkbox). Rather than basic text, you may utilise [Typography](#typography) components as well as other components to customise your feedback message. | ||
|
||
```jsx | ||
<InputFeedback> | ||
<Paragraph>Provide a brief description of your issue</Paragraph> | ||
</InputFeedback> | ||
``` | ||
|
||
```jsx | ||
<InputFeedback> | ||
<Text block size="small"> | ||
<Box between={2}> | ||
<Paragraph size="small" bold>Be sure to include your:</Paragraph> | ||
<UnorderedList> | ||
<UnorderedList.Item>Name</UnorderedList.Item> | ||
<UnorderedList.Item>Address</UnorderedList.Item> | ||
<UnorderedList.Item>Country</UnorderedList.Item> | ||
</UnorderedList> | ||
</Box> | ||
</Text> | ||
</InputFeedback> | ||
``` |
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