Skip to content

Commit

Permalink
Merge pull request #212 from newrelic/theletterf-patch-1
Browse files Browse the repository at this point in the history
Update COMPONENT_GUIDE.md
jerelmiller authored Jun 22, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents f1b5f91 + fea3c0f commit f5bfb6e
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions COMPONENT_GUIDE.md
Original file line number Diff line number Diff line change
@@ -199,10 +199,31 @@ Callouts direct your attention to information of special importance or to inform

### Usage

* Caution: `<Caution>Text</Caution>`
* Important: `<Important>Text</Important>`
* Tip: `<Tip>Text</Important>`
```jsx
<Caution>

Text with `markdown`.

</Caution>

<Important>

Text with `markdown`.

</Important>

<Tip>

Text with `markdown`.

</Tip>
```

All callouts have default titles that can be overridden like this:

`<Caution title="A custom title">Text</Caution>`
```jsx
<Caution title="A custom title">

Text

</Caution>```

0 comments on commit f5bfb6e

Please sign in to comment.