Skip to content

KCompactModeToggle ​

示例 ​

Toggle Compact Mode

Compact: false

A toggle button that switches between compact and adaptive list display modes. Hidden on mobile viewports.

Props ​

NameTypeDefaultDescription
modelValuebooleanfalseWhether compact mode is active.
classstring—Additional CSS classes for the button.

Emits ​

NameParametersDescription
update:modelValuebooleanEmitted when the toggle is clicked.

Slots ​

NameDescription
—This component does not provide slots.

Basic Usage ​