Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

arcturus140/react-admonitions

Repository files navigation

react-admonitions

An admonitions React component, ported from remarkable-admonitions. Perfect for Docusaurus v2 and other React-based doc generators.

NPM JavaScript Style Guide Build Status

Test the component out on Stackblitz, or view the demo

Install

npm install --save react-admonitions

Screenshots

Example Pictures

Usage

import React, { Component } from 'react'
import Admonition from 'react-admonitions'
class Example extends Component {
 render() {
 return (
 <Admonition type="warning" title="Do not do this">
 Admonition Content
 </Admonition>
 )
 }
}

Props

Name Default Description
type none What type of admonition you want to display. Valid options: "warning", "tip", "caution", "note", "important"
iconType "svg" The type of admonition icon. Valid options: "svg", "emoji"
title none The, well, title of the admonition

Credits

HTML, styles, and concept all come from the amazing Markdown plugin by @favoloso, remarkable-admonitions.

License

MIT © nebrelbug

About

An admonitions React component, ported from remarkable-admonitions. Perfect for Docusaurus v2 and other React-based doc generators

Resources

Stars

Watchers

Forks

Packages

Contributors

Languages

  • JavaScript 74.9%
  • CSS 20.1%
  • HTML 5.0%

AltStyle によって変換されたページ (->オリジナル) /