Sorry, no results found for "".

Plugin SDK > Section

Section

Basic usage

<Canvas ctx={ctx}>
<Section title="Section title">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
</Section>
</Canvas>

Highlighted

<Canvas ctx={ctx}>
<Section title="Section title" highlighted>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
</Section>
</Canvas>

Collapsible

<Canvas ctx={ctx}>
<StateManager initial={true}>
{(isOpen, setOpen) => (
<Section
title="Section title"
collapsible={{ isOpen, onToggle: () => setOpen((v) => !v) }}
>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat.
</Section>
)}
</StateManager>
</Canvas>