AccordionSection

data class AccordionSection(val title: AnnotatedString, val body: AnnotatedString, val isEnabled: Boolean = true)

Represents a section within an Accordion component.

An Accordion Section consists of a title, a body containing the content to be displayed, and an enabled state indicating whether the section can be interacted with. The title and body are represented as AnnotatedStrings to allow for rich text formatting within the section.

Constructors

Link copied to clipboard
constructor(title: String, body: String, isEnabled: Boolean = true)

Alternative constructor of AccordionSection that takes plain strings for the title and body.

constructor(title: AnnotatedString, body: AnnotatedString, isEnabled: Boolean = true)

Properties

Link copied to clipboard

The content of the accordion section, displayed when the section is expanded.

Link copied to clipboard
val isEnabled: Boolean = true

Indicates whether the section is enabled (interactive) or disabled (non-interactive). Defaults to true. A disabled section cannot be expanded or collapsed.

Link copied to clipboard

The title of the accordion section, typically displayed as a clickable header.