Skip to main content
PROYECTOVIVIANA

ContextualHelp

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

Import

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

Props

Props for ContextualHelp in @proyecto-viviana/ui
PropTypeDefaultDescription
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement—Contextual help popover content.
contentnumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement—Backward-compatible content alias. Prefer children for S2 parity.
triggerLabelstring—Accessible label for the icon trigger button.
variant'info' | 'help''help'Indicates whether contents are informative or provide help.
size'S' | 'XS''XS'Size of the trigger ActionButton.
defaultOpenfalse | true—Whether the overlay is open by default (uncontrolled).
isOpenfalse | true—Whether the overlay is open (controlled).
onOpenChange(isOpen: boolean) => void—Handler called when the overlay's open state changes.
stylesStyleString—Spectrum-defined generated classes for the trigger.
UNSAFE_classNamestring—Additional CSS class name for the trigger. Use only as a last resort.
UNSAFE_styleJSX.CSSProperties—Additional inline styles for the trigger. Use only as a last resort.
classstring—Backward-compatible trigger class alias. Prefer UNSAFE_className for S2 parity.
aria-detailsstring—Id of the element that provides detailed information.
slotstring—Slotted context key.
refHTMLButtonElement | ((el: HTMLButtonElement) => void) | { current?: HTMLButtonElement | null | undefined; }—Ref for the icon trigger button.
idstring—DOM id for the popover element.
aria-describedbystring—Id of the element that describes the popover.
aria-labelstring—Accessible label for the popover.
aria-labelledbystring—Id of the element that labels the popover.
autoFocusfalse | truetrueWhether focus should move to the popover container on open. solidaria-components
maxHeightnumber—The max height of the popover. solidaria-components
triggerRef() => Element | null—The ref for the element which the popover positions itself with respect to. Required when used standalone (not within a trigger component). solidaria-components
placement'start' | 'end' | 'top' | 'bottom' | 'left' | 'right' | 'bottom left' | 'bottom right' | 'bottom start' | 'bottom end' | 'top left' | 'top right' | 'top start' | 'top end' | 'left top' | 'left bottom' | 'right top' | 'right bottom' | 'start top' | 'start bottom' | 'end top' | 'end bottom'—The position of the popover relative to the trigger.
containerPaddingnumber12The placement padding that should be applied between the element and its surrounding container. solidaria-components
offsetnumber8The additional offset applied along the main axis between the element and its anchor element. solidaria-components
crossOffsetnumber0The additional offset applied along the cross axis between the element and its anchor element. solidaria-components
shouldFlipfalse | truetrueWhether the element should flip its orientation when there is insufficient room. solidaria-components
boundaryElementElement—A boundary element for placement calculations. solidaria-components
getTargetRect(target: Element) => DOMRect | null | undefinedtarget.getBoundingClientRect()Overrides the target element's bounding rectangle. Useful for positioning relative to a specific point such as the mouse cursor (e.g. context menus) or text selection. solidaria-components
arrowRef() => Element | null—A ref for the popover arrow element. solidaria-components
scrollRef() => Element | null—A ref for the scrollable popover element. solidaria-components
isNonModalfalse | true—Whether the popover is non-modal (allows interaction outside). solidaria-components
isKeyboardDismissDisabledfalse | true—Whether pressing Escape to close should be disabled. solidaria-components
shouldCloseOnInteractOutside(element: Element) => boolean—Filter for which outside interactions should close the popover. solidaria-components
onFocusWithin(e: FocusEvent) => void—Handler that is called when the popover or a descendant receives focus. solidaria-components
onBlurWithin(e: FocusEvent) => void—Handler that is called when the popover and all descendants lose focus. solidaria-components
onFocusWithinChange(isFocusWithin: boolean) => void—Handler that is called when the popover's focus-within state changes. solidaria-components
isEnteringfalse | true—Whether the popover is entering (for animations). solidaria-components
isExitingfalse | true—Whether the popover is exiting (for animations). solidaria-components
shouldSkipAnimationfalse | true—Whether the popover should appear and disappear without an entry or exit animation. Used by PreviewTrigger to skip animations when quickly swapping between overlays. solidaria-components

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

ContextualHelpPopover props

Props for ContextualHelpPopover in @proyecto-viviana/ui
PropTypeDefaultDescription
children*JSX.Element—Contextual help popover content.
classstring—Additional CSS class name.
slotstring | false—A slot name for the component. HTML `slot` may be `false` to omit. solidaria-components
idstring—DOM id for the popover element.
aria-describedbystring—Id of the element that describes the popover.
aria-detailsstring—Identifies the element (or elements) that provide a detailed, extended description for the object. solidaria
aria-labelstring—Accessible label for the popover.
aria-labelledbystring—Id of the element that labels the popover.
autoFocusfalse | truetrueWhether focus should move to the popover container on open. solidaria-components
triggerstring—The name of the component that triggered the popover. solidaria-components
defaultOpenfalse | true—Whether the popover opens by default (uncontrolled). solidaria-components
isOpenfalse | true—Whether the popover is open (controlled). solidaria-components
onOpenChange(isOpen: boolean) => void—Handler called when the popover's open state changes. 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.
maxHeightnumber—The max height of the popover. solidaria-components
triggerRef() => Element | null—The ref for the element which the popover positions itself with respect to. Required when used standalone (not within a trigger component). solidaria-components
placement'start' | 'end' | 'top' | 'bottom' | 'left' | 'right' | 'bottom left' | 'bottom right' | 'bottom start' | 'bottom end' | 'top left' | 'top right' | 'top start' | 'top end' | 'left top' | 'left bottom' | 'right top' | 'right bottom' | 'start top' | 'start bottom' | 'end top' | 'end bottom'—The position of the popover relative to the trigger.
containerPaddingnumber12The placement padding that should be applied between the element and its surrounding container. solidaria-components
offsetnumber8The additional offset applied along the main axis between the element and its anchor element. solidaria-components
crossOffsetnumber0The additional offset applied along the cross axis between the element and its anchor element. solidaria-components
shouldFlipfalse | truetrueWhether the element should flip its orientation when there is insufficient room. solidaria-components
boundaryElementElement—A boundary element for placement calculations. solidaria-components
getTargetRect(target: Element) => DOMRect | null | undefinedtarget.getBoundingClientRect()Overrides the target element's bounding rectangle. Useful for positioning relative to a specific point such as the mouse cursor (e.g. context menus) or text selection. solidaria-components
arrowRef() => Element | null—A ref for the popover arrow element. solidaria-components
scrollRef() => Element | null—A ref for the scrollable popover element. solidaria-components
isNonModalfalse | true—Whether the popover is non-modal (allows interaction outside). solidaria-components
isKeyboardDismissDisabledfalse | true—Whether pressing Escape to close should be disabled. solidaria-components
shouldCloseOnInteractOutside(element: Element) => boolean—Filter for which outside interactions should close the popover. solidaria-components
onFocusWithin(e: FocusEvent) => void—Handler that is called when the popover or a descendant receives focus. solidaria-components
onBlurWithin(e: FocusEvent) => void—Handler that is called when the popover and all descendants lose focus. solidaria-components
onFocusWithinChange(isFocusWithin: boolean) => void—Handler that is called when the popover's focus-within state changes. solidaria-components
isEnteringfalse | true—Whether the popover is entering (for animations). solidaria-components
isExitingfalse | true—Whether the popover is exiting (for animations). solidaria-components
shouldSkipAnimationfalse | true—Whether the popover should appear and disappear without an entry or exit animation. Used by PreviewTrigger to skip animations when quickly swapping between overlays. solidaria-components

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

ContextualHelpStyle props

Props for ContextualHelpStyle in @proyecto-viviana/ui
PropTypeDefaultDescription
variant'info' | 'help''help'Indicates whether contents are informative or provide help.

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