Skip to content

Commit 6037ae1

Browse files
committed
added new tooltip props and callout component
1 parent dd54934 commit 6037ae1

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

components/callouts.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: 'Use callouts to add eye-catching context to your content'
44
icon: 'info'
55
---
66

7-
Callouts can be styled as a Note, Warning, Info, Tip, or Check:
7+
Callouts can be styled as a Note, Warning, Info, Tip, Check, or create your own callout:
88

99
<Note>This adds a note in the content</Note>
1010

@@ -42,10 +42,16 @@ Callouts can be styled as a Note, Warning, Info, Tip, or Check:
4242
<Danger>This is a danger callout</Danger>
4343
```
4444

45+
<Callout icon="key" color="#FFC107" iconType="regular">
46+
This is a custom callout
47+
</Callout>
48+
4549
<RequestExample>
4650

4751
```mdx Callout Example
48-
<Note>This adds a note in the content</Note>
52+
<Callout icon="key" color="#FFC107" iconType="regular">
53+
This is a custom callout
54+
</Callout>
4955
```
5056

5157
</RequestExample>

components/tooltips.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ icon: 'message-square'
66

77
Tooltips are a way to show a definition when you hover over text.
88

9-
<Tooltip tip="This is a tooltip!">Hover over me</Tooltip> and see a tooltip in action
9+
<Tooltip tip="This is a tooltip!" cta="Learn more about changelogs" href="/components/update">Hover over me</Tooltip> and see a tooltip in action
1010

1111
<RequestExample>
1212

13-
```mdx Tooltip Example
14-
<Tooltip tip="This is a tooltip!">Hover over me</Tooltip>
13+
```mdx Tooltip Example wrap
14+
<Tooltip tip="This is a tooltip!" cta="Learn more about changelogs" href="/components/update">Hover over me</Tooltip>
1515
```
1616

1717
</RequestExample>

0 commit comments

Comments
 (0)