Skip to content

Commit

Permalink
Create Admonitions.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudis committed Aug 2, 2024
1 parent d91d8c2 commit cb0c4a1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/Admonitions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from "react"

export function Admonition({ title, content }) {
return (
<div className="admonition">
<div className="admonition-title">{title}</div>
<div dangerouslySetInnerHTML={{ __html: content }}></div>
</div>
)
}

0 comments on commit cb0c4a1

Please sign in to comment.