menu

Anique

Accordion

Click me to open
chevron-up
Hi this is the internal content of this accordion
I am already open
chevron-up
Hello guy ?
texture-box
content-copy
xml
import {Alert, Column} from "@qinetik/anique"; import {Accordion} from "@qinetik/anique/accordion"; import {createSignal} from "solid-js"; export default function BasicAccordionExample() { return ( <Column gap={"1em"}> <Accordion title={"Click me to open"} defaultExpanded={false} > Hi this is the internal content of this accordion </Accordion> <Accordion title={"I am already open"} > Hello guy ? </Accordion> </Column> ) }

Controlled

Checkout my length
chevron-up
check-circle-outline
Wise men say
check-circle-outline
Only fools rush in
check-circle-outline
But I can't help
check-circle-outline
Falling in love with you
texture-box
content-copy
xml
import {Accordion} from "@qinetik/anique/accordion"; import {Alert, Column} from "@qinetik/anique"; import {createSignal} from "solid-js"; export default function ControlledAccordionExample() { const [open, setOpen] = createSignal(true) return ( <Accordion title={"Checkout my length"} style={{gap: "1em"}} expanded={open} setExpanded={setOpen} > <Column gap={"1em"}> <Alert>Wise men say</Alert> <Alert>Only fools rush in</Alert> <Alert>But I can't help</Alert> <Alert>Falling in love with you</Alert> </Column> </Accordion> ) }