-
-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added "note block" in markdown component
- Loading branch information
1 parent
15de13a
commit 6dee0b0
Showing
4 changed files
with
68 additions
and
55 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,5 @@ | ||
--- | ||
"@yamada-ui/markdown": minor | ||
--- | ||
|
||
When write note in `Markdown` component, can express a supplementary explanation using Yamada UI `Alert` component. |
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 |
---|---|---|
|
@@ -12,11 +12,11 @@ const meta: Meta<typeof Markdown> = { | |
export default meta | ||
|
||
export const basic: Story = () => { | ||
return <Markdown>{MESSAGE}</Markdown> | ||
return <Markdown>{README}</Markdown> | ||
} | ||
|
||
export const withCodeTheme: Story = () => { | ||
return <Markdown code={{ theme: "materialDark" }}>{README}</Markdown> | ||
return <Markdown codeProps={{ theme: "materialDark" }}>{README}</Markdown> | ||
} | ||
|
||
export const customComponent: Story = () => { | ||
|
@@ -39,18 +39,6 @@ export const customComponent: Story = () => { | |
) | ||
} | ||
|
||
const MESSAGE = ` | ||
:::note status=info | ||
やっほーーーー!! | ||
::: | ||
# あいうえお | ||
- なんだってばよ | ||
あっかんべー | ||
` | ||
const README = ` | ||
<p align="center"> | ||
<img src="https://raw.githubusercontent.com/hirotomoyamada/yamada-ui/main/logo/[email protected]" alt="Yamada UI" width="480" /> | ||
|