ds-svelte-community
Nais Docs
Pages
  • Home
  • CSS
  • Icons
Typography
  • BodyLong
  • BodyShort
  • Detail
Components
  • Accordion
  • ActionMenu Beta
  • Alert
  • Button
  • Checkbox
  • Chips
  • ConfirmationPanel
  • CopyButton
  • ErrorSummary
  • ExpansionCard
  • GuidePanel
  • HelpText
  • InternalHeader Beta
  • List
  • Loader
  • Modal
  • Pagination
  • Popover
  • Radio
  • ReadMore
  • Search
  • Select
  • Skeleton
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag
  • TextField
  • ToggleGroup
  • Tooltip
Primitives
  • Bleed
  • Box

Version: 1.0.0
Try dark darkside
Try light darkside

Accordion

Accordion is related sections with interactive headers that allow users to open or close the view of the content below.

Read more about this component in the Aksel documentation.

    Default
Content
Some other content
This is default open

Properties

Accordion

PropertyDescriptionDefault
Control
Properties
headingSize

The size of the accordion heading.

"large" "medium" "small" "xsmall"
"small"
indent

Whether to indent content or not

boolean
true
size

The size of the accordion.

"large" "medium" "small"
"medium"
variant

The variant of the accordion.

"default" "neutral"
-
Snippets
children

List of AccordionItem components.

 -

Properties included from: HTMLAttributes<HTMLDivElement>

AccordionItem

PropertyDescriptionDefault
Control
Properties
heading

Heading of the accordion item.

string Snippet
-
open

Whether the accordion item is open or not.

boolean
false
showMoreText

Aria text

string
-
Snippets
children

Content

 -
heading

Heading of the accordion item.

 -

Properties included from: HTMLAttributes<HTMLDivElement>