UNPKG

@anoki/fse-ui

Version:

FSE UI components library

3 lines (2 loc) 1.1 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs278.js"),c=require("./index.cjs331.js"),t=require("./index.cjs82.js"),l=require("./index.cjs219.js"),a=require("./index.cjs9.js"),u=require("./index.cjs19.js"),d=({title:n,toggleableLabel:o="",children:r,defaultOpen:i=!0})=>{const[s,x]=c.useToggle(i);return e.jsxRuntimeExports.jsxs(t.Col,{className:"bg-lightblue-a03 p-x20 br-x8 shadow-sm",children:[e.jsxRuntimeExports.jsxs(l.Row,{justifyContent:"space-between",className:"mb-x24",alignItems:"center",children:[e.jsxRuntimeExports.jsxs(t.Col,{gap:"x4",children:[e.jsxRuntimeExports.jsx("h2",{className:"fs-5 fw-bold text-slate-100",children:n}),!s&&e.jsxRuntimeExports.jsx("p",{className:"fs-6 fw-regular text-slate-80",children:o})]}),e.jsxRuntimeExports.jsx(a.ActionIconText,{textLabel:"",iconColor:"slate-20",handleAction:x,icon:e.jsxRuntimeExports.jsx(u.ArrowDown,{className:`cursor-pointer ${s?"rotate-180":""}`})})]}),s&&e.jsxRuntimeExports.jsx(t.Col,{children:r})]})};exports.AccordionContainer=d; //# sourceMappingURL=index.cjs6.js.map