Skip to main content
PROYECTOVIVIANA

Accordion

The props declared for Accordion, generated from the types @proyecto-viviana/ui ships.

Import

import { Accordion } from "@proyecto-viviana/ui";

Props

Props for Accordion in @proyecto-viviana/ui
PropTypeDefaultDescription
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement—The accordion item elements in the accordion.
size'S' | 'M' | 'L' | 'XL' | 'sm' | 'md' | 'lg'"M"The size of all disclosures in the group.
density'compact' | 'regular' | 'spacious'"regular"The amount of space between disclosure items.
isQuietfalse | true—Whether disclosures should be displayed with a quiet style.
variant'default' | 'bordered' | 'filled' | 'ghost'—Legacy visual variant. Prefer isQuiet for S2 parity.
refHTMLDivElement | ((el: HTMLDivElement) => void) | { current?: HTMLDivElement | null | undefined; }—A ref for the disclosure group root element.
isDisabledfalse | true—Whether all items are disabled. solid-stately
onExpandedChange(keys: Set<Key>) => void—Handler that is called when items are expanded or collapsed. solid-stately
allowsMultipleExpandedfalse | true—Whether multiple items can be expanded at the same time. solid-stately
expandedKeysIterable<Key>—The currently expanded keys in the group (controlled). solid-stately
defaultExpandedKeysIterable<Key>—The initial expanded keys in the group (uncontrolled). solid-stately
stylesStyleString—Spectrum-defined generated classes.
UNSAFE_classNamestring—Additional CSS class name. Use only as a last resort.
UNSAFE_styleJSX.CSSProperties—Additional inline styles. Use only as a last resort.
classstring—Backward-compatible class alias. Prefer UNSAFE_className for S2 parity.
styleJSX.CSSProperties—Backward-compatible style alias. Prefer UNSAFE_style for S2 parity.
slotstring—Slot name for contextual props.

Declared in packages/viviana-ui/src/accordion/index.tsx.

AccordionItem props

Props for AccordionItem in @proyecto-viviana/ui
PropTypeDefaultDescription
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement—The contents of the accordion item, consisting of a title and panel.
size'S' | 'M' | 'L' | 'XL' | 'sm' | 'md' | 'lg'"M"The size of the disclosure.
density'compact' | 'regular' | 'spacious'"regular"The amount of space between the disclosure title and panel.
isQuietfalse | true—Whether the disclosure should be displayed with a quiet style.
variant'default' | 'bordered' | 'filled' | 'ghost'—Legacy visual variant. Prefer isQuiet for S2 parity.
idKey—An id for the disclosure item, matching the id used in expandedKeys.
refHTMLDivElement | ((el: HTMLDivElement) => void) | { current?: HTMLDivElement | null | undefined; }—A ref for the disclosure root element.
isDisabledfalse | true—Whether the disclosure is disabled. solidaria-components
isExpandedfalse | true—Whether the disclosure is expanded (controlled). solid-stately
defaultExpandedfalse | true—Whether the disclosure is expanded by default (uncontrolled). solid-stately
onExpandedChange(isExpanded: boolean) => void—Handler that is called when the disclosure expanded state changes. solid-stately
stylesStyleString—Spectrum-defined generated classes.
UNSAFE_classNamestring—Additional CSS class name. Use only as a last resort.
UNSAFE_styleJSX.CSSProperties—Additional inline styles. Use only as a last resort.
classstring—Backward-compatible class alias. Prefer UNSAFE_className for S2 parity.
styleJSX.CSSProperties—Backward-compatible style alias. Prefer UNSAFE_style for S2 parity.
slotstring—Slot name for contextual props.

Declared in packages/viviana-ui/src/accordion/index.tsx.

AccordionItemHeader props

Props for AccordionItemHeader in @proyecto-viviana/ui
PropTypeDefaultDescription
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement—The contents of the accordion item header.
refHTMLDivElement | ((el: HTMLDivElement) => void) | { current?: HTMLDivElement | null | undefined; }—Not yet documented
stylesStyleString—Spectrum-defined generated classes.
UNSAFE_classNamestring—Additional CSS class name. Use only as a last resort.
UNSAFE_styleJSX.CSSProperties—Additional inline styles. Use only as a last resort.
classstring—Backward-compatible class alias. Prefer UNSAFE_className for S2 parity.
styleJSX.CSSProperties—Backward-compatible style alias. Prefer UNSAFE_style for S2 parity.
slotstring—Slot name for contextual props.

Declared in packages/viviana-ui/src/accordion/index.tsx.

AccordionItemPanel props

Props for AccordionItemPanel in @proyecto-viviana/ui
PropTypeDefaultDescription
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement—The contents of the accordion item panel.
refHTMLDivElement | ((el: HTMLDivElement) => void) | { current?: HTMLDivElement | null | undefined; }—Not yet documented
role'group' | 'region'—The accessibility role for the disclosure panel. solidaria-components
stylesStyleString—Spectrum-defined generated classes.
UNSAFE_classNamestring—Additional CSS class name. Use only as a last resort.
UNSAFE_styleJSX.CSSProperties—Additional inline styles. Use only as a last resort.
classstring—Backward-compatible class alias. Prefer UNSAFE_className for S2 parity.
styleJSX.CSSProperties—Backward-compatible style alias. Prefer UNSAFE_style for S2 parity.
slotstring—Slot name for contextual props.

Declared in packages/viviana-ui/src/accordion/index.tsx.

AccordionItemTitle props

Props for AccordionItemTitle in @proyecto-viviana/ui
PropTypeDefaultDescription
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement—The contents of the accordion item title.
stylesStylesPropWithFont—Spectrum-defined styles, returned by the `style()` macro. Only allows overriding `font`, `fontFamily`, `fontWeight`, `fontSize`, and `lineHeight`.
levelnumber3The heading level of the disclosure header.
hideIconfalse | true—Backward-compatible option for the legacy DisclosureTrigger alias.
refHTMLHeadingElement | ((el: HTMLHeadingElement) => void) | { current?: HTMLHeadingElement | null | undefined; }—Not yet documented
UNSAFE_classNamestring—Additional CSS class name. Use only as a last resort.
UNSAFE_styleJSX.CSSProperties—Additional inline styles. Use only as a last resort.
classstring—Backward-compatible class alias. Prefer UNSAFE_className for S2 parity.
styleJSX.CSSProperties—Backward-compatible style alias. Prefer UNSAFE_style for S2 parity.
slotstring—Slot name for contextual props.

Declared in packages/viviana-ui/src/accordion/index.tsx.

Props marked solidaria or solidaria-components come from the headless layer underneath and behave the same in both registers. Components that wrap a DOM element also accept that element's standard attributes, which are left out here on purpose — listing them would bury the props that are actually ours.