NV Elements Catalog Starters Repo System Themes Getting Started Getting Started Installation CLI MCP Skills Lint Integrations Getting Started Angular Bundles Custom Elements Golang Hugo Import Maps Lit Lit Library MCP Apps NextJS Nuxt Preact React SolidJS Svelte TypeScript Vue About Changelog Metrics Support Accessibility Contributions Requests Migration Foundations Overview Typography Iconography Themes Design Tokens Size & Space Objects Interactions Support Status Color Animation Fonts Layers Custom Layout Horizontal Vertical Grid Popovers i18n Visualization View Transitions Elements Accordion Alert Avatar Badge Breadcrumb Button Button Group Card Chat Message Checkbox Color Combobox Copy Button Datagrid Integrations Column Action Column Alignment Column Fixed Column width Container Card Display Settings Footer Heatmap Keynav Multi Select Pagination Panel Detail Panel Grid Performance Placeholder Row Action Row Groups Row Sort Scroll Height Single Select Stripe Date Datetime Dialog Divider Dot Drawer Dropdown Dropdown Group Dropzone File Format Datetime Format Number Format Relative Time Forms Validation Actions Control Icon Icon Button Input Input Group Logo Menu Month Notification Page Page Header Page Loader Pagination Progressive Filter Chip Progress Bar Progress Ring Password Preferences Input Pulse Radio Range Resize Handle Search Select Skeleton Sort Button Sparkline Star Rating Steps Switch Tabs Tag Textarea Time Toast Toggletip Toolbar Tooltip Tree Week Patterns Authentication Browse Chat Dashboard Editor Empty States Heatmap Keyboard Shortcut Logging Media Navigation Onboarding Panel Responsive Search Subheader Trend Code Codeblock Monaco Input Diff Input Editor Diff Editor Problems Markdown Markdown CSS Utility Labs Responsive Layout Viewport Container Patterns Forms API Design Properties & Attributes Slots Registration CustomEvents Stateless Composition Styles Packaging Glossary Logs Internal Guidelines Agent Harness Agent Tooling Agent Ownership Documentation Examples TypeScript Testing Unit Testing Accessibility Testing Lighthouse Testing SSR Testing Visual Testing Troubleshooting Component Creation Internal Examples All Examples

Accordion

stable:  0.2.3 Coverage: 88.88% Bundle: 22.12kb Lighthouse: 100 Axe Core Released: 0.12.0
Overview API Examples

<nve-accordion>

Properties

Property Attribute Description Values behaviorExpand behavior-expand

Determines whether the accordion should opt-in to stateful expansion behavior (defaults to stateless)

true
false
disabled disabled

This Boolean attribute prevents the user from interacting with the element: it cannot receive press or focus events. MDN

true The element has a disabled state and does not accept interaction.
false The element has an enabled state and accepts interaction.
expanded expanded

Indicates whether collapsible content is currently visible or hidden from the user. MDN

true The associated content expands and becomes visible to the user.
false The associated content collapses and hides from the user.
container container

Demonstrates different container styles to accommodate visual weight and context.

flat Element has white space bounds but reduced visual container.
inset Element container optimizes for embedding or inset placement inside another containing element.
i18n i18n

Enables updating internal string values for internationalization.

Slots

Slot Description content

content element (Use accordion-content or custom content)

header

header element (Use accordion-header or custom content)

icon-button

icon elements to display for expand/collapse

default

This is a default/unnamed slot for accordion content

Invoker Commands

Command Description --toggle

use to toggle the accordion

--close

use to close the accordion

--open

use to open the accordion

CSS Properties

Css-property Description --transition --cursor --header-padding
--border-radius --color --background

CSS Parts

Css-part Description icon-button

The toggle icon button element

<nve-accordion-header>

Properties

Property Attribute Description Values slot none
string

Slots

Slot Description suffix

slot for suffix content

prefix

slot for prefix content

default

default content slot

CSS Properties

Css-property Description --cursor

<nve-accordion-content>

Slots

Slot Description default

This is a default/unnamed slot for accordion content

CSS Properties

Css-property Description --padding

<nve-accordion-group>

Properties

Property Attribute Description Values container container

Demonstrates different container styles to accommodate visual weight and context.

flat Element has white space bounds but reduced visual container.
inset Element container optimizes for embedding or inset placement inside another containing element.
behaviorExpandSingle behavior-expand-single

Determines whether the accordion should opt-in to stateful expansion of a single accordion at a time

true
false
behaviorExpand behavior-expand

Determines whether the accordion should opt-in to stateful expansion behavior (defaults to stateless)

true
false

Slots

Slot Description default

This is a default slot for accordions within the group

CSS Properties

Css-property Description --padding