mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
some dropdown works
This commit is contained in:
@@ -3,9 +3,35 @@ import React from "react";
|
|||||||
|
|
||||||
export default function ExpandableModule({ module }: { module: LocalModule }) {
|
export default function ExpandableModule({ module }: { module: LocalModule }) {
|
||||||
return (
|
return (
|
||||||
<details>
|
<>
|
||||||
<summary> {module.name}</summary>
|
<section className="">
|
||||||
expanded details
|
<label>
|
||||||
</details>
|
<div
|
||||||
|
className="
|
||||||
|
max-h-14 max-w-xs
|
||||||
|
overflow-hidden
|
||||||
|
rounded-lg
|
||||||
|
bg-slate-800
|
||||||
|
px-4 py-0 mb-3
|
||||||
|
transition-all duration-500
|
||||||
|
peer-checked/showLabel:max-h-screen
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<div className="flex h-14 cursor-pointer items-center font-bold">
|
||||||
|
<input
|
||||||
|
className="peer/showLabel absolute scale-0"
|
||||||
|
type="checkbox"
|
||||||
|
/>
|
||||||
|
{module.name}
|
||||||
|
</div>
|
||||||
|
<hr />
|
||||||
|
<p className="mb-2">
|
||||||
|
crafted a sleek collapsible panel using Tailwind CSS without the
|
||||||
|
need for JavaScript. Impressive! 😎
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user