mirror of
https://github.com/bendtherules/UiQuestions.git
synced 2026-08-18 22:02:42 +00:00
components - Add Accordion and Admonition components
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import React from "react";
|
||||
|
||||
const Accordion = ({ children, title = "More" }) => (
|
||||
<details>
|
||||
<summary>{title}</summary>
|
||||
{children}
|
||||
</details>
|
||||
);
|
||||
|
||||
export default Accordion;
|
||||
Reference in New Issue
Block a user