components - Add Accordion and Admonition components

This commit is contained in:
2020-10-14 20:38:00 +05:30
parent dc4f7bbda5
commit e14c673f8a
2 changed files with 136 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
import React from "react";
const Accordion = ({ children, title = "More" }) => (
<details>
<summary>{title}</summary>
{children}
</details>
);
export default Accordion;