Skip to main content
PROYECTOVIVIANA

Breadcrumbs

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

Import

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

Props

Props for Breadcrumbs in @proyecto-viviana/ui
PropTypeDefaultDescription
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement | ((item: T) => JSX.Element)—The children of the Breadcrumbs.
size'M' | 'L' | 'sm' | 'md' | 'lg''M'The size of the Breadcrumbs.
stylesStyleString | (() => StyleString | undefined)—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.
variant'default' | 'subtle'—Legacy visual variant alias. Kept for source compatibility; S2 Breadcrumbs has no variant.
showSeparatorfalse | true—Legacy separator toggle. Kept for source compatibility.
refHTMLElement | ((el: HTMLElement) => void) | { current?: HTMLElement | null | undefined; }—Ref for the navigation element.
slotstring | false—A slot name for the component. HTML `slot` may be `false` to omit. solidaria-components
aria-describedbystring—Identifies the element (or elements) that describes the breadcrumbs. solidaria
aria-detailsstring—Identifies the element (or elements) that provide a detailed description. solidaria
aria-labelstring—Provides a label for the breadcrumbs navigation. solidaria
aria-labelledbystring—Identifies the element (or elements) that labels the breadcrumbs. solidaria
isDisabledfalse | true—Whether the breadcrumbs are disabled. solidaria-components
itemsT[]—The items to render in the breadcrumbs. solidaria-components
onAction(key: string | number) => void—Handler called when a breadcrumb item is activated. solidaria-components
getKey(item: T) => string | number—Function to get the key from an item. solidaria-components

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

Breadcrumb props

Props for Breadcrumb in @proyecto-viviana/ui
PropTypeDefaultDescription
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement | ((renderProps: BreadcrumbItemRenderProps) => JSX.Element)—The children of the breadcrumb item.
stylesStyleString | (() => StyleString | undefined)—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.
refHTMLElement | ((el: HTMLElement) => void) | { current?: HTMLElement | null | undefined; }—Ref for the breadcrumb item element.
slotstring | false—A slot name for the component. HTML `slot` may be `false` to omit. solidaria-components
idstring—The DOM id for the breadcrumb item. solidaria
onBlur(e: FocusEvent) => void—Handler that is called when the element loses focus. solidaria
onClick(e: MouseEvent) => void—Handler that is called when the element is clicked. solidaria
onFocus(e: FocusEvent) => void—Handler that is called when the element receives focus. solidaria
onKeyDown(e: KeyboardEvent) => void—Handler that is called when a key is pressed. solidaria
onKeyUp(e: KeyboardEvent) => void—Handler that is called when a key is released. solidaria
aria-currentfalse | true | 'page' | 'step' | 'location' | 'date' | 'time''page'The type of current location for aria-current. solidaria
aria-describedbystring—Identifies the element (or elements) that describes the object. solidaria
aria-detailsstring—Identifies the element (or elements) that provide a detailed description. solidaria
aria-labelstring—Defines a string value that labels the current element. solidaria
aria-labelledbystring—Identifies the element (or elements) that labels the current element. solidaria
isDisabledfalse | true—Whether this item is disabled. solidaria-components
elementTypestring'a'The HTML element type. solidaria
hrefstring—The URL to link to. solidaria
targetstring—The target window for the link. solidaria
relstring—The relationship between the linked resource and the current page. solidaria
onPress(e: PressEvent) => void—Handler that is called when the press is released over the target. solidaria
onPressStart(e: PressEvent) => void—Handler that is called when a press interaction starts. solidaria
onPressEnd(e: PressEvent) => void—Handler that is called when a press interaction ends. solidaria
onPressUp(e: PressEvent) => void—Handler that is called when a press is released over the target. solidaria
onPressChange(isPressed: boolean) => void—Handler that is called when the press state changes. solidaria
autoFocusfalse | true—Whether to autofocus the element. solidaria
routerOptionsRecord<string, unknown>—Additional options forwarded to client-side router navigation handlers. solidaria
hrefLangstring—Hints the language of the linked resource. solidaria
downloadstring | boolean—Instructs the browser to download the URL instead of navigating to it. solidaria
pingstring—Space-separated list of URLs to ping when following the link. solidaria
referrerPolicy'' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url'—Referrer policy for fetches initiated by this link. solidaria
onFocusChange(isFocused: boolean) => void—Handler that is called when the element's focus status changes. solidaria
isCurrentfalse | true—Whether this is the current/last item in the breadcrumb trail. solidaria

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

BreadcrumbItem props

Props for BreadcrumbItem in @proyecto-viviana/ui
PropTypeDefaultDescription
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement | ((renderProps: BreadcrumbItemRenderProps) => JSX.Element)—The children of the breadcrumb item.
stylesStyleString | (() => StyleString | undefined)—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.
refHTMLElement | ((el: HTMLElement) => void) | { current?: HTMLElement | null | undefined; }—Ref for the breadcrumb item element.
slotstring | false—A slot name for the component. HTML `slot` may be `false` to omit. solidaria-components
idstring—The DOM id for the breadcrumb item. solidaria
onBlur(e: FocusEvent) => void—Handler that is called when the element loses focus. solidaria
onClick(e: MouseEvent) => void—Handler that is called when the element is clicked. solidaria
onFocus(e: FocusEvent) => void—Handler that is called when the element receives focus. solidaria
onKeyDown(e: KeyboardEvent) => void—Handler that is called when a key is pressed. solidaria
onKeyUp(e: KeyboardEvent) => void—Handler that is called when a key is released. solidaria
aria-currentfalse | true | 'page' | 'step' | 'location' | 'date' | 'time''page'The type of current location for aria-current. solidaria
aria-describedbystring—Identifies the element (or elements) that describes the object. solidaria
aria-detailsstring—Identifies the element (or elements) that provide a detailed description. solidaria
aria-labelstring—Defines a string value that labels the current element. solidaria
aria-labelledbystring—Identifies the element (or elements) that labels the current element. solidaria
isDisabledfalse | true—Whether this item is disabled. solidaria-components
elementTypestring'a'The HTML element type. solidaria
hrefstring—The URL to link to. solidaria
targetstring—The target window for the link. solidaria
relstring—The relationship between the linked resource and the current page. solidaria
onPress(e: PressEvent) => void—Handler that is called when the press is released over the target. solidaria
onPressStart(e: PressEvent) => void—Handler that is called when a press interaction starts. solidaria
onPressEnd(e: PressEvent) => void—Handler that is called when a press interaction ends. solidaria
onPressUp(e: PressEvent) => void—Handler that is called when a press is released over the target. solidaria
onPressChange(isPressed: boolean) => void—Handler that is called when the press state changes. solidaria
autoFocusfalse | true—Whether to autofocus the element. solidaria
routerOptionsRecord<string, unknown>—Additional options forwarded to client-side router navigation handlers. solidaria
hrefLangstring—Hints the language of the linked resource. solidaria
downloadstring | boolean—Instructs the browser to download the URL instead of navigating to it. solidaria
pingstring—Space-separated list of URLs to ping when following the link. solidaria
referrerPolicy'' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url'—Referrer policy for fetches initiated by this link. solidaria
onFocusChange(isFocused: boolean) => void—Handler that is called when the element's focus status changes. solidaria
isCurrentfalse | true—Whether this is the current/last item in the breadcrumb trail. solidaria

Declared in packages/viviana-ui/src/breadcrumbs/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.