Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add
<InformationCircleIcon />
icon, improve <Callout />
default e…
…mojis (#887) * add `<InformationCircleIcon />` icon, improve `<Callout />` default emojis * update snapshots * fix
- Loading branch information
1 parent
9f5af54
commit fc8cca0
Showing
7 changed files
with
97 additions
and
6 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,6 @@ | ||
--- | ||
'nextra': patch | ||
'nextra-theme-docs': patch | ||
--- | ||
|
||
add `<InformationCircleIcon />` icon, improve `<Callout />` default emojis |
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,23 @@ | ||
import { Callout } from 'nextra-theme-docs' | ||
|
||
# `<Callout />` Component | ||
|
||
<Callout> | ||
`<Callout>…` | ||
</Callout> | ||
|
||
<Callout type="info"> | ||
`<Callout type="info">…` | ||
</Callout> | ||
|
||
<Callout type="warning"> | ||
`<Callout type="warning">…` | ||
</Callout> | ||
|
||
<Callout type="error"> | ||
`<Callout type="error">…` | ||
</Callout> | ||
|
||
<Callout type="info" emoji="🇫🇷"> | ||
`<Callout type="info" emoji="🇫🇷">…` | ||
</Callout> |
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
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,22 @@ | ||
import React, { ComponentProps, ReactElement } from 'react' | ||
|
||
export function InformationCircleIcon( | ||
props: ComponentProps<'svg'> | ||
): ReactElement { | ||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 20 20" | ||
fill="currentColor" | ||
width="20" | ||
height="20" | ||
{...props} | ||
> | ||
<path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" | ||
/> | ||
</svg> | ||
) | ||
} |