✨ Add Accordion and Modal components

Accordion.Item manages its own open state with aria-expanded wiring.
Modal renders through a portal with backdrop click handling. Also adds
the ChevronDown icon used by the accordion header.
This commit is contained in:
Aksel Mini committed 2026-08-21 15:10:00 +02:00
1 parent bb9501ea31
commit adfcead7be
13 files changed
+389 -1

No files matched your search

@@ -0,0 +1,27 @@
import { forwardRef } from "react";
import type { SVGProps } from "react";
export const ChevronDownIcon = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>(
function ChevronDownIcon(props, ref) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
viewBox="0 0 24 24"
fill="none"
focusable={false}
aria-hidden
ref={ref}
{...props}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M5.4 8.9 12 15.5l6.6-6.6-1.4-1.4-5.2 5.2-5.2-5.2-1.4 1.4Z"
fill="currentColor"
/>
</svg>
);
},
);
+1
View File
@@ -1,3 +1,4 @@
export { ChevronDownIcon } from "./ChevronDownIcon";
export { InformationIcon } from "./InformationIcon";
export { CheckmarkIcon } from "./CheckmarkIcon";
export { WarningIcon } from "./WarningIcon";