forked from facebook/create-react-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a1f274
commit 8e865c3
Showing
5 changed files
with
51 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import Note from './'; | ||
import { Preview, ComponentDocs, Code } from './../'; | ||
|
||
# Note | ||
|
||
Note should be used to display additional or somehow important information with visual indication of type of information. | ||
|
||
## Variants | ||
|
||
### Default | ||
|
||
<Preview> | ||
<Note title="Note title">Note content</Note> | ||
</Preview> | ||
|
||
### Note types | ||
|
||
<Preview> | ||
<Note title="Info" type="info">Note content</Note> | ||
<Note title="Success" type="success">Note content</Note> | ||
<Note title="Warning" type="warning">Note content</Note> | ||
<Note title="Error" type="error">Note content</Note> | ||
</Preview> | ||
|
||
## Props | ||
|
||
<ComponentDocs title="<Note />" component={Note} /> | ||
|
||
## Aliases | ||
|
||
<Code inline={false} language="jsx">{`<NoteInfo /> === <Note type="info" /> | ||
<NoteSuccess /> === <Note type="success" /> | ||
<NoteWarning /> === <Note type="warning" /> | ||
<NoteError /> === <Note type="error" /> | ||
<Dos /> === <Note type="success" title="Do's" /> | ||
<Donts /> === <Note type="error" title="Dont's" /> | ||
`}</Code> |
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