UI LibraryUI Library
Guide
Components
Styling
Repo
Guide
Components
Styling
Repo
  • Guide

    • Introduction
    • Getting Started
  • Components

    • CataUiAccordion
    • CataUiAccordionItem
    • CataUiAlert
    • CataUiAnchorMenu
    • CataUiBadge
    • CataUiButton
    • CataUiCollapse
    • CataUiDraggable
    • CataUiDropdown
    • CataUiDropover
    • CataUiFileTree
    • CataUiIcon
    • CataUiIconSwitch
    • CataUiInput
    • CataUiInputCheckbox
    • CataUiInputColor
    • CataUiInputDate
    • CataUiInputGroup
    • CataUiInputRadio
    • CataUiInputSearch
    • CataUiInputSelect
    • CataUiMasonry
    • CataUiMasonryTile
    • CataUiLogo
    • CataUiModal
    • CataUiPaginate
    • CataUiProgress
    • CataUiSpinner
    • CataUiStatusLabel
    • CataUiSwitch
    • CataUiTable
    • CataUiTableAG
    • CataUiTableFooter
    • CataUiTabs
    • CataUiTabSwitch
    • CataUiTooltip
  • Styling

    • Colors
    • Icons
    • Typography
    • Utils

CataUiCollapse

A collapsible component that provides a toggle mechanism to show or hide content. The component features a label and a chevron icon that rotates to indicate the collapse state.

Basic Usage

Basic usage:

With v-model:

This content's visibility is controlled by the isOpen variable
<CataUiCollapse label="The label" color="#fff">
    Collapsible content here
</CataUiCollapse>

Using v-model

<CataUiCollapse v-model="isOpen" label="Controlled collapse">
    This content's visibility is controlled by the isOpen variable
</CataUiCollapse>

Tips

If v-model is not provided, the collapse state will be handled by the component itself.

Props

PropDescriptionTypeDefaultRequired
colorText and border line colorString'var(--color-grey-900)'false
labelThe text label displayed in the collapse headerString''false
v-modelControls the collapse state (open/closed)Booleanfalse

Slots

SlotDescription
defaultCollapsible content
Prev
CataUiButton
Next
CataUiDraggable