Ga naar hoofdinhoud

CnSettingsCard

Collapsible card for organizing settings into sections. Used in admin settings pages.

Try it​

Loading CnSettingsCard playground…

Props​

CnSettingsCard showing lead sources configuration

PropTypeDefaultDescription
titleString''Card title
iconString''Emoji or text icon displayed before the title
collapsibleBooleanfalseAllow collapsing the card
defaultCollapsedBooleanfalseWhether the card starts in a collapsed state (only relevant when collapsible is true)

Events​

EventPayloadDescription
toggleisCollapsedCollapse state changed

Slots​

SlotDescription
defaultCard content
#actionsHeader action buttons

Usage​

<CnSettingsCard title="General Settings" description="Basic configuration options">
<NcTextField label="App Name" v-model="appName" />
<NcSelect label="Default Language" v-model="language" :options="languages" />
</CnSettingsCard>

Reference (auto-generated)​

The tables below are generated from the SFC source via vue-docgen-cli. They reflect what's actually in CnSettingsCard.vue and update automatically whenever the component changes.

Props​

NameTypeRequiredDefaultDescription
titlestring''Card title text
iconstring''Icon emoji or text displayed before the title
collapsiblebooleanfalseWhether the card can be collapsed
defaultCollapsedbooleanfalseWhether the card starts collapsed (only applies when collapsible)

Events​

NamePayloadDescription
toggle—Emitted when collapse state changes. Payload: isCollapsed boolean.

Slots​

NameBindingsDescription
default—