
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@yozora/react-admonition
Advanced tools
This component is for rendering the Admonition data produced by
@yozora/tokenizer-admonition.
This component has been built into @yozora/react-markdown, you can use it directly.

npm
npm install --save @yozora/react-admonition
yarn
yarn add @yozora/react-admonition
Basic:
import React from 'react'
import Admonition from '@yozora/react-admonition'
const wrapper = (
<Admonition
keyword="info"
style={{ color: 'orange', fontSize: '16px' }}
title={<span>a<strong>b</strong></span>}
>
some text1
<span>some text2</span>
</Admonition>
)
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
children | React.ReactNode | false | - | Admonition contents |
className | string | false | - | Root css class |
keyword | string | false | - | Admonition keyword |
title | string | false | - | Admonition title |
style | React.CSSProperties | false | - | Root css style |
icon | React.ReactNode | false | - | Admonition title icon |
className: The root element of this component will always bind with the CSS class
'yozora-admonition'
keyword
| Raw Keyword | Resolved Keyword |
|---|---|
| note |
default | note |
note | note |
import | info |
info | info |
success | tip |
tip | tip |
warning | caution |
caution | caution |
error | error |
danger | danger |
| Name | Default value |
|---|---|
--yozora-admonition-border-width | 5px |
--yozora-colors-background-error | #ffebec |
--yozora-colors-background-info | #eef9fd |
--yozora-colors-background-note | #fdfdfe |
--yozora-colors-background-success | #e6f6e6 |
--yozora-colors-background-warning | #fff8e6 |
--yozora-colors-border-error | #e13238 |
--yozora-colors-border-info | #4cb3d4 |
--yozora-colors-border-note | #d4d5d8 |
--yozora-colors-border-success | #009400 |
--yozora-colors-border-warning | #e6a700 |
FAQs
render markdown admonition in react
We found that @yozora/react-admonition demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.