Tags allow users to categorize content. They can represent keywords or people, and are grouped to describe an item or a search request.
export const TagGroup: <T>(props: TagGroupProps<T> & { }) => import("react").ReactElement = ...The label to display on the action button.
actionLabel?: string;Handler that is called when the action button is pressed.
onAction?: () => void;Sets what the TagGroup should render when there are no tags to display.
renderEmptyState?: () => import("react").ReactElement;Limit the number of rows initially shown. This will render a button that allows the user to expand to show all tags.
maxRows?: number;Consolidates core functionality and dependencies of the Keystar component library.
export const KeystarProvider: CompWithAsProp<KeystarProviderProps, "div"> = ...Returns the settings and styles applied by the nearest parent Provider. Properties explicitly set by the nearest parent Provider override those provided by preceeding Providers.
export function useProvider(): KeystarProviderContextThe package version number of the nearest parent Provider.
version: string;The theme of the nearest parent Provider.
The color scheme of the nearest parent Provider.
The color scheme for your application. Defaults to operating system preferences.
@default — 'auto'
The locale for your application as a BCP 47 language code. Defaults to the browser/OS language setting.
@default — 'en-US'
The background color of the body element. This will only have an effect if the KeystarProvider is rendered as the html element.
Provide a client side router to all nested Keystar links to enable client side navigation.
router?: Router;Whether descendants should be disabled.
isDisabled?: boolean;Whether descendants should be displayed with the required style.
isRequired?: boolean;Whether descendants should be read only.
isReadOnly?: boolean;Text links take users to another place in the application, and usually appear within or directly following a sentence. Styled to resemble a hyperlink.
export const TextLink: import("react").ForwardRefExoticComponent<TextLinkProps & import("react").RefAttributes<HTMLAnchorElement | HTMLSpanElement>> = ...The visual prominence of the text link.
@default — 'default'
ActionMenu combines an ActionButton with a Menu for simple "more actions" use cases.
export const ActionMenu: <T>(props: ActionMenuProps<T> & { }) => import("react").ReactElement = ...Menus display a list of actions or options that a user can choose.
export const Menu: <T>(props: MenuProps<T> & { }) => import("react").ReactElement = ...The MenuTrigger serves as a wrapper around a Menu and its associated trigger, linking the Menu's open state with the trigger's press state.
export const MenuTrigger: import("react").ForwardRefExoticComponent<{Whether the element should receive focus on render.
autoFocus?: boolean;Whether the button is disabled.
isDisabled?: boolean;Handler that is called when an item is selected.
onAction?: import("react-aria").AriaMenuProps<T>["onAction"];Whether disabledKeys applies to all interactions, or only selection.
Alignment of the menu relative to the trigger.
@default — 'start'
Where the Menu opens relative to its trigger.
@default — 'bottom'
Whether the menu should automatically flip direction when space is limited.
@default — true
Whether the Menu closes when a selection is made.
@default — true
A TabList is used within Tabs to group tabs that a user can switch between. The keys of the items within the must match up with a corresponding item inside the .
export function TabList<T extends object>(props: TabListProps<T>): import("react").ElementTabPanels is used within Tabs as a container for the content of each tab. The keys of the items within the must match up with a corresponding item inside the .
export function TabPanels<T>(props: TabPanelsProps<T>): import("react").ElementTabs organise related content into multiple sections. They allow the user to navigate between groups of information that appear within the same context.
export const Tabs: <T>(props: TabsProps<T> & { }) => import("react").ReactElement = ...The children of the element. Should include <TabList> and
<TabPanels> elements.
When true, all tabs are disabled.
isDisabled?: boolean;The keys of the tabs that are disabled. These tabs cannot be selected, focused, or otherwise interacted with.
disabledKeys?: Iterable<import("@react-types/shared").Key>;The orientation of the tabs.
@default — 'horizontal'
The tab items to display. Item keys should match the key of the corresponding <Item> within the <TabPanels> element.
The contents of each tab. Item keys should match the key of the corresponding <Item> within the <TabList> element.
A badge is a decorative indicator used to either call attention to an item or for communicating non-actionable, supplemental information.
export const Badge: import("react").ForwardRefExoticComponent<BadgeProps & { }> = ...Provides the accessibility implementation for input fields. Fields accept user input, gain context from their label, and may display a description or error message.
export const Field: (props: InternalFieldProps) => import("react").Element = ...For controls that DO NOT include a semantic element for user input. In these cases the "required" state would not otherwise be announced to users of assistive technology.
supplementRequiredState?: boolean;Provides the accessibility implementation for input fields. Fields accept user input, gain context from their label, and may display a description or error message.
export const FieldPrimitive: import("react").ForwardRefExoticComponent<FieldPrimitiveProps & { }> = ...Description text provides information to assist the user in completing a field.
description?: import("react").ReactNode;Error messages inform the user when the input does not meet validation criteria.
errorMessage?: import("react").ReactNode;Whether user input is required on the input before form submission.
isRequired?: boolean;The HTML element used to render the label, e.g. 'label', or 'span'.
@default — 'label'
For controls that DO NOT use a semantic element for user input. In these cases the "required" state would not otherwise be announced to users of assistive technology.
supplementRequiredState?: boolean;Add validationState when errorMessage is provided. Used by
"@react-aria/*" hooks to determine aria attributes.
A wrapper around the native image tag with support for common behaviour.
export function Image(props: ImageProps): import("react").ElementText description of the image.
alt: string;The preferred aspect ratio for the box, which will be used in the calculation of auto sizes and some other layout functions. See MDN.
aspectRatio: AspectRatioProps["value"];The URL of the image.
src: string;Callback that is called when the image fails to load because of an error.
onError?: import("react").ReactEventHandler<HTMLImageElement>;Callback that is called when the image loads successfully.
onLoad?: import("react").ReactEventHandler<HTMLImageElement>;How the image should be resized to fit its container. See MDN.
@default — 'cover'
How to handle loading of the image. When "lazy", loading is deferred
until the image reaches a distance threshold from the viewport. See MDN.
@default — 'eager'
Radio groups allow users to select a single option from a list of mutually exclusive options.
export const RadioGroup: import("react").ForwardRefExoticComponent<RadioGroupProps> = ...Merge component props with ancestral slot props. With the exception of "id", consumer props are overriden by slot props, while event handlers will be chained so all are called.
export function useSlotProps<P extends {Not really "slots" like web components, more like "prop portalling" or something. Default and override the props of descendent components.
@example — <SlotProvider slots={{ text: { size: 'small' } }}> {children}
A block of content within a container.
export const Content: CompWithAsProp<ContentProps, "section"> = ...A thin wrapper around Emotion's cx
function that includes the reset
class name.
A ClassList organises component class names with appropriate prefixes, offering strongly-typed methods for declaration in JSX and styles.
export class ClassList<ElementName extends "root" | (string & {})> {The function returned from this hook will resolve values in a mobile-first manner based on the breakpoint the browser viewport currently falls within (mobile, tablet, desktop or wide).
@caution — The returned function returns value.mobile when rendering
server-side or statically, so you should avoid this hook where possible.
Responsive props and media queries are preferable in most cases.
Filters out style props.
@param — - The component props to be filtered.
@param — - An array of other style property names that should be omitted.
Filters out non-style props.
@param — - The component props to be filtered.
A utility component for styling interactions. Applies data-attributes to the child element when it receives different types of focus.
export function FocusRing(props: Omit<import("react-aria").FocusRingProps, "focusClass" | "focusRingClass">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>Do not edit directly Generated on Fri, 03 Nov 2023 05:52:12 GMT
export const tokenSchema: {Converts an object to a set of data attributes.
export function toDataAttributes<T extends {Omit props with values of false or "".
Removes the is* prefix from keys.
React hook that listens for matches to a given media query.
@example — let isBelowTablet = useMediaQuery('(max-width: 768px)');
Sets the CSS className for the element. Only use as a last resort, prefer style props instead.
UNSAFE_className?: Parameters<typeof cx>[0];Sets inline style for the element. Only use as a last resort, prefer style props instead.
UNSAFE_style?: import("react").CSSProperties;The margin for the logical start side of the element, depending on layout direction. See MDN.
marginStart?: Responsive<LooseSizeSpace>;The margin for the logical end side of an element, depending on layout direction. See MDN.
marginEnd?: Responsive<LooseSizeSpace>;The margin for both the left and right sides of the element. See MDN.
marginX?: Responsive<LooseSizeSpace>;The margin for both the top and bottom sides of the element. See MDN.
marginY?: Responsive<LooseSizeSpace>;When used in a flex layout, specifies how the element will grow or shrink to fit the space available. See MDN.
flex?: Responsive<string | number | boolean>;When used in a flex layout, specifies how the element will grow to fit the space available. See MDN.
flexGrow?: Responsive<number>;When used in a flex layout, specifies how the element will shrink to fit the space available. See MDN.
flexShrink?: Responsive<number>;When used in a flex layout, specifies the initial main size of the element. See MDN.
flexBasis?: Responsive<number | string>;Specifies how the element is justified inside a flex or grid container. See MDN.
justifySelf?: Responsive<Exclude<import("react").CSSProperties["justifySelf"], "left" | "right">>;Overrides the alignItems property of a flex or grid container. See MDN.
The layout order for the element within a flex or grid container. See MDN.
order?: Responsive<number>;When used in a grid layout, specifies the named grid area that the element should be placed in within the grid. See MDN.
gridArea?: Responsive<string>;When used in a grid layout, specifies the column the element should be placed in within the grid. See MDN.
gridColumn?: Responsive<string>;When used in a grid layout, specifies the row the element should be placed in within the grid. See MDN.
gridRow?: Responsive<string>;When used in a grid layout, specifies the starting column to span within the grid. See MDN.
gridColumnStart?: Responsive<string>;When used in a grid layout, specifies the ending column to span within the grid. See MDN.
gridColumnEnd?: Responsive<string>;When used in a grid layout, specifies the starting row to span within the grid. See MDN.
gridRowStart?: Responsive<string>;When used in a grid layout, specifies the ending row to span within the grid. See MDN.
gridRowEnd?: Responsive<string>;Specifies how the element is positioned. See MDN.
position?: Responsive<import("react").CSSProperties["position"]>;Shorthand that corresponds to the top, right, bottom, and/or left properties. See MDN.
inset?: Responsive<LooseSizeSpace>;The logical start position for the element, depending on layout direction. See MDN.
insetStart?: Responsive<LooseSizeSpace>;The logical end position for the element, depending on layout direction. See MDN.
insetEnd?: Responsive<LooseSizeSpace>;Shorthand for the element's border on all four sides. It sets the values of border-width, border-style, and border-color. See MDN.
border?: Responsive<ColorBorder>;Shorthand for the border on the logical start side, depending on the layout direction. It sets the values of border-width, border-style, and border-color. See MDN.
borderStart?: Responsive<ColorBorder>;Shorthand for the border on the logical end side, depending on the layout direction. It sets the values of border-width, border-style, and border-color. See MDN.
borderEnd?: Responsive<ColorBorder>;Shorthand for the top border. It sets the values of border-width, border-style, and border-color. See MDN.
borderTop?: Responsive<ColorBorder>;Shorthand for the bottom border. It sets the values of border-width, border-style, and border-color. See MDN.
borderBottom?: Responsive<ColorBorder>;The color of the border on the logical start side, depending on the layout direction. See MDN.
borderStartColor?: Responsive<ColorBorder>;The color of the border on the logical end side, depending on the layout direction. See MDN.
borderEndColor?: Responsive<ColorBorder>;The style of the border on the logical start side, depending on the layout direction. See MDN.
borderStartStyle?: Responsive<BorderStyle>;The style of the border on the logical end side, depending on the layout direction. See MDN.
borderEndStyle?: Responsive<BorderStyle>;The width of the border on the logical start side, depending on the layout direction. See MDN.
borderStartWidth?: Responsive<SizeBorder>;The width of the border on the logical end side, depending on the layout direction. See MDN.
borderEndWidth?: Responsive<SizeBorder>;The border radius for the top start corner of the element, depending on the layout direction. See MDN.
borderTopStartRadius?: Responsive<SizeRadius>;The border radius for the top end corner of the element, depending on the layout direction. See MDN.
borderTopEndRadius?: Responsive<SizeRadius>;The border radius for the bottom start corner of the element, depending on the layout direction. See MDN.
borderBottomStartRadius?: Responsive<SizeRadius>;The border radius for the bottom end corner of the element, depending on the layout direction. See MDN.
borderBottomEndRadius?: Responsive<SizeRadius>;Adds shadow effects around an element's frame. See MDN.
boxShadow?: Responsive<SizeShadow | `${SizeShadow} ${ColorShadow}`>;The padding for the logical start side of the element, depending on layout direction. See MDN.
paddingStart?: Responsive<LooseSizeSpace>;The padding for the logical end side of an element, depending on layout direction. See MDN.
paddingEnd?: Responsive<LooseSizeSpace>;The padding for both the left and right sides of the element. See MDN.
paddingX?: Responsive<LooseSizeSpace>;The padding for both the top and bottom sides of the element. See MDN.
paddingY?: Responsive<LooseSizeSpace>;The type of mouse cursor, if any, to show when the mouse pointer is over an element. See MDN
cursor?: Responsive<import("react").CSSProperties["cursor"]>;The opacity of an element. Opacity is the degree to which content behind an element is hidden, and is the opposite of transparency. See MDN
opacity?: Responsive<number>;Specify what to do when the element's content is too long to fit its size. See MDN.
overflow?: Responsive<OverflowValue | `${OverflowValue} ${OverflowValue}`>;Sets under what circumstances (if any) a particular element can become the target of pointer events. See MDN.
pointerEvents?: Responsive<import("react").CSSProperties["pointerEvents"]>;Controls whether the user can select text. This doesn't have any effect on content loaded as part of a browser's user interface (its chrome), except in textboxes. See MDN.
userSelect?: Responsive<import("react").CSSProperties["userSelect"]>;The distribution of space around items along the main axis. See MDN.
@default — 'stretch'
The distribution of space around child items along the cross axis. See MDN.
@default — 'start'
The alignment of children within their container. See MDN.
@default — 'stretch'
The direction in which to layout children. See MDN.
@default — 'row'
Whether to display the element as "inline". See MDN.
@default — false
Whether to wrap items onto multiple lines. See MDN.
@default — false
Defines the sizes of each row in the grid. See MDN.
rows?: Responsive<string | LooseSizeDimension[]>;Defines the sizes of each column in the grid. See MDN.
columns?: Responsive<string | LooseSizeDimension[]>;Defines the size of implicitly generated columns. See MDN.
autoColumns?: Responsive<string | LooseSizeDimension>;Defines the size of implicitly generated rows. See MDN.
autoRows?: Responsive<string | LooseSizeDimension>;Controls how auto-placed items are flowed into the grid. See MDN.
autoFlow?: Responsive<"row" | "column" | "row dense" | "column dense">;Whether to display the element as "inline". See MDN.
@default — false
Defines the default justifySelf for all items in the grid. See MDN.
Handler that is called when a user performs an action on a row.
onAction?: (key: string | number) => void;@deprecated — Use onAction instead.
What should render when there is no content to display.
renderEmptyState?: () => import("react").Element;Handler that is called when a user starts a column resize.
onResizeStart?: (widths: Map<import("react").Key, import("react-stately").ColumnSize>) => void;Handler that is called when a user performs a column resize. Can be used with the width property on columns to put the column widths into a controlled state.
onResize?: (widths: Map<import("react").Key, import("react-stately").ColumnSize>) => void;Handler that is called after a user performs a column resize. Can be used to store the widths of columns for another future session.
onResizeEnd?: (widths: Map<import("react").Key, import("react-stately").ColumnSize>) => void;The drag and drop hooks returned by useDragAndDrop used to enable drag and drop behavior for the TableView.
@version — beta
Sets the amount of vertical padding within each cell.
@default — 'regular'
Sets the overflow behavior for the cell contents.
@default — 'truncate'
The visual prominence of the table.
@default — 'default'
Static child columns or content to render as the column header.
children: import("react").ReactNode | ColumnElement<T> | ColumnElement<T>[];The width of the column.
width?: number | string;The minimum width of the column.
minWidth?: number | string;The maximum width of the column.
maxWidth?: number | string;The default width of the column.
@private —
Whether the column allows resizing.
@private —
Whether the column allows sorting.
allowsSorting?: boolean;Whether a column is a row header and should be announced by assistive technology during row navigation.
isRowHeader?: boolean;A string representation of the column's contents, used for accessibility announcements.
textValue?: string;The alignment of the column's contents relative to its allotted width.
@default — 'start'
Whether the column should render a divider between it and the next column.
showDivider?: boolean;Whether the column should hide its header text. A tooltip with the column's header text will be displayed when the column header is focused instead. Note that this prop is specifically for columns that contain ActionButtons in place of text content.
hideHeader?: boolean;A Toaster renders the queued toasts in an application. It should be placed at the root of the app.
export function Toaster(props: ToasterProps): import("react").Element | nullQueues a neutral toast.
neutral(children: import("react").ReactNode, options?: ToastOptions): CloseFunction;Queues a positive toast.
positive(children: import("react").ReactNode, options?: ToastOptions): CloseFunction;Queues a critical toast.
critical(children: import("react").ReactNode, options?: ToastOptions): CloseFunction;Queues an informational toast.
info(children: import("react").ReactNode, options?: ToastOptions): CloseFunction;Handler that is called when the action button is pressed.
onAction?: () => void;Whether the toast should automatically close when an action is performed.
shouldCloseOnAction?: boolean;The placement of the toast container.
@default — 'end'
The position of the toast container.
@default — 'bottom'
How much of the referrer to send when following the link. See MDN.
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy;The browsing context (a tab, window, or ) in which to open the linked URL. See MDN.
target?: import("react").HTMLAttributeAnchorTarget;The axis the Divider should align with.
@default — 'horizontal'
A slot to place the divider in.
@default — 'divider'
Whether the stroke should scale with the size of the icon.
@default — true
A slot to place the icon in.
@default — 'icon'
The horizontal alignment of content inside the heading element.
@default — 'start'
The size of the heading.
Also used to derive the underlying HTML element, unless an explicit
elementType is provided.
A slot to place the heading in.
@default — 'heading'
Limit the contents of the element to the specified number of lines, or provide a shorthand boolean to conveniently express a single line.
truncate?: number | boolean;Hides children visually, while keeping content visible to screen readers.
visuallyHidden?: BreakpointRange;The horizontal alignment of content inside the text element. Does NOT apply to nested text.
Use logical properties "start" and "end" in most cases, since they respond to locale direction. Only use special values "FORCE_left" and "FORCE_right" in rare cases where locale direction should be ignored, such as numeric text within a tabular container.
@default — 'start'
How to capitalize the element's contents.
@default — 'none'
How to handle white space and line breaks when the text would otherwise overflow its content box.
@default — 'breakword'
A slot to place the text in.
@default — 'text'
The title attribute contains text representing advisory information related to the element it belongs to. See MDN.
title?: string;Trim the space above capital letters and below the baseline. Does NOT apply to nested text.
@default — true
Limit the contents of the element to the specified number of lines, or provide a shorthand boolean to conveniently express a single line.
truncate?: number | boolean;Control the usage of alternate glyphs for numbers, fractions, and ordinal markers. See MDN font-variant-numeric for more information.
@default — 'normal'
Hides children visually, while keeping content visible to screen readers.
visuallyHidden?: BreakpointRange;Support conditional children, where React.ReactNode is too loose.
Allow "falsy" values + some type. Used for React children.
export type Conditional<T> = T | false | null | undefinedDefine a type that may be a single value, or an array of that value.
export type MaybeArray<T> = T | T[]From T, pick a set of properties whose keys are required. All other properties remain untouched.
export type PickRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>The types that may be considered valid "text", and can be safely rendered as children of a React component or element.
export type ReactText = string | numberSupport traditional children, or a render function.
export type WithRenderProps<T> = {The children of the component. A function may be provided to alter the children based on component state.
children?: import("react").ReactNode | RenderProp<T>;Clone a React element, with optional props. If the value is not a valid React element, return null.
export function cloneValidElement<Props>(child: import("react").ReactElement<Props> | import("react").ReactNode, props?: Partial<Props> & import("react").Attributes): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | nullFormat IDs for compound components.
@example — const root = useId() const inputId = composeId(root, 'input') // => ':R1:--input' const descriptionId = composeId(root, 'field-element' 'description') // => ':R1:--field-element--description'
Checks if an unknown value is valid React text (string | number)?[]. This is useful for conditionally wrapping some value when an element is required.
export function isReactText(value: unknown): value is MaybeArray<ReactText>A thin wrapper around React.useId() that supports a consumer provided ID.
Returns a function that returns true if the component is mounted, and
false otherwise.
Tracks the previous value of a variable.
This is useful for comparing the previous value of some prop or state to the current value, and taking action based on the change.
Render the children of a component, either as a function or a ReactNode.
@param — The props of the component.
@param — A memoized object, which is passed as the argument to your props.children render fn.
An avatar is a thumbnail representation of an entity, such as a user or an organization.
export const Avatar: import("react").ForwardRefExoticComponent<AvatarProps & { }> = ...Text description of the avatar. When no alt is provided the avatar is
treated as a decorative element.
The name used for the initials.
name: string;The src attribute of the image.
Handles overflow for a grouping of buttons whose actions are related to each other.
export const ButtonGroup: import("react").ForwardRefExoticComponent<ButtonGroupProps & { }> = ...The alignment of the buttons within the button group.
@default — 'start'
Whether the buttons in the button group are all disabled.
isDisabled?: boolean;The axis the button group should align with. Setting this will prevent switching behavior.
@default — 'horizontal'
Buttons are pressable elements that are used to trigger actions, their label should express what action will occur when the user interacts with it.
export const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>> = ...Action buttons allow users to perform an action. They’re used for similar, task-based options within a workflow, and are ideal for interfaces where buttons aren’t meant to draw a lot of attention.
export const ActionButton: import("react").ForwardRefExoticComponent<ActionButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>> = ...A clear button is a button that is typically found on search fields and is used to clear the current search query. This can be useful if the user has entered a search query by mistake, or if they want to start over with a new search.
export const ClearButton: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "children" | "prominence" | "tone"> & {@private — Internal component for composing complex field interactions.
export const FieldButton: import("react").ForwardRefExoticComponent<FieldButtonProps & { }> = ...Toggle buttons allow users to toggle a selection on or off, for example switching between two states or modes.
export const ToggleButton: import("react").ForwardRefExoticComponent<ToggleButtonProps & { }> = ...Whether the button is selected.
isSelected?: boolean;Whether the button is disabled.
isDisabled?: boolean;The static style to apply. Useful when the button appears over a background.
static?: "light" | "dark";The visual prominence of the button.
@default — 'default'
Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
'aria-expanded'?: boolean | "true" | "false";Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
'aria-haspopup'?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog";Identifies the element (or elements) whose contents or presence are controlled by the current element.
'aria-controls'?: string;Indicates the current "pressed" state of toggle buttons.
'aria-pressed'?: boolean | "true" | "false" | "mixed";The behavior of the button when used in an HTML form.
@default — 'button'
Identifies the form element that should be used when type="submit"
form?: string;Disable events and display a progress indicator.
isPending?: boolean;Whether the button is disabled.
isDisabled?: boolean;The static style to apply. Useful when the button appears over a background. Ignores tone.
static?: "light" | "dark";Whether the element should be selected (controlled).
isSelected?: boolean;Whether the element should be selected (uncontrolled).
defaultSelected?: boolean;Handler that is called when the element's selection state changes.
onChange?: (isSelected: boolean) => void;AlertDialogs are a specific type of Dialog. They display important information that users need to acknowledge.
export const AlertDialog: import("react").ForwardRefExoticComponent<AlertDialogProps & { }> = ...Dialogs are windows containing contextual information, tasks, or workflows that appear over the user interface. Depending on the kind of dialog, further interactions may be blocked until the dialog is closed.
export const Dialog: import("react").ForwardRefExoticComponent<DialogProps & { }> = ...A DialogContainer accepts a single Dialog as a child, and manages showing and hiding it in a modal. Useful in cases where there is no trigger element or when the trigger unmounts while the dialog is open.
export function DialogContainer(props: DialogContainerProps): import("react").ElementA dialog may be abstracted from its trigger; this hook provides access to context.
export function useDialogContainer(): DialogContainerValueDialogTrigger serves as a wrapper around a Dialog and its associated trigger, linking the Dialog's open state with the trigger's press state. Additionally, it allows you to customize the type and positioning of the Dialog.
export let DialogTrigger: (props: DialogTriggerProps) => import("react").Element = ...The tone of the dialog.
@default — 'neutral'
The title of the dialog.
title: string;The label to display within the cancel button.
cancelLabel?: string;The label to display within the confirm button.
primaryActionLabel: string;The label to display within the secondary button.
secondaryActionLabel?: string;Whether the primary button is disabled.
isPrimaryActionDisabled?: boolean;Whether the secondary button is disabled.
isSecondaryActionDisabled?: boolean;Handler that is called when the cancel button is pressed.
onCancel?: () => void;Handler that is called when the primary button is pressed.
onPrimaryAction?: () => void;Handler that is called when the secondary button is pressed.
onSecondaryAction?: () => void;Button to focus by default when the dialog opens.
autoFocusButton?: "cancel" | "primary" | "secondary";Handler that is called when the 'x' button of a dismissable Dialog is clicked.
onDismiss?: () => void;The accessibility role for the dialog.
@default — 'dialog'
The dialog to display, if any.
children: Exclude<import("react").ReactNode, Iterable<import("react").ReactNode>> | string;Handler that is called when the [×] button of a dismissable dialog is clicked.
onDismiss: () => void;The type of dialog that should be rendered.
@default — 'modal'
Whether the dialog is dismissable.
isDismissable?: boolean;Whether pressing the escape key to close the dialog should be disabled.
isKeyboardDismissDisabled?: boolean;The dialog and its trigger element.
children: [import("react").ReactElement, DialogRenderFn | import("react").ReactElement];The type of Dialog that should be rendered when on a mobile device. See DialogTrigger types section for an explanation on each.
mobileType?: Exclude<DialogType, "popover">;Whether a "popover" type dialog's arrow should be hidden.
hideArrow?: boolean;The ref of the element the dialog should visually attach itself to. Defaults to the trigger button if not defined.
targetRef?: import("react").RefObject<HTMLElement | null>;Whether a "modal" type dialog should be dismissable.
isDismissable?: boolean;Whether pressing the escape key to close the dialog should be disabled.
isKeyboardDismissDisabled?: boolean;How the popover should adapt when constrained by available space.
@default — 'flip'
The clipping boundary area of the floating element.
@default — 'clippingAncestors'
The placement of the floating element relative to the reference element.
placement?: Placement;Whether to portal the floating element outside the DOM hierarchy of the parent component.
@default — true
The reference element that the floating element should be positioned relative to.
reference: ReferenceElement;A toolbar item may be a checkbox/radio/toggle button, depending on context.
export function EditorToolbarItem(props: EditorToolbarItemProps): import("react").ElementHow the popover should adapt when constrained by available space.
@default — 'flip'
The clipping boundary area of the floating element.
@default — 'clippingAncestors'
The placement of the floating element relative to the reference element.
placement?: Placement;Whether to portal the floating element outside the DOM hierarchy of the parent component.
@default — true
The reference element that the floating element should be positioned relative to.
reference: ReferenceElement;Present responsive media, such as images and videos or anything within an iFrame, at a specific aspect ratio.
export function AspectRatio(props: AspectRatioProps): import("react").ElementExposes a prop-based API for adding styles to a view, within the constraints of the theme.
export const Box: CompWithAsProp<BoxProps, "div"> = ...Dividers bring clarity to a layout by grouping and dividing content in close proximity. They can also be used to establish rhythm and hierarchy.
export const Divider: CompWithAsProp<DividerProps, "div"> = ...A layout container CSS flex. Keystar UI dimension values provide consistent spacing between items.
export const Flex: CompWithAsProp<FlexProps, "div"> = ...A layout container using CSS grid. Keystar UI dimension values provide consistent sizing and spacing.
export const Grid: CompWithAsProp<GridProps, "div"> = ...A thin wrapper around Flex, for stacking elements horizontally.
A thin wrapper around Flex, for stacking elements vertically.
A surface contains UI in an isolated container, a bit like CSS stacking contexts. Use surfaces to create interfaces that are related to but distinct from those around them.
export const Surface: CompWithAsProp<SurfaceProps, "div"> = ...Get information about the current surface. Use to
pull from the level for the surface of the invoking component.
Clamps a given size to an available size. See MDN.
@param — - The size to clamp.
Defines a size range greater than or equal to min and less than or equal to max. See MDN.
@param — - The minimum size.
@param — - The maximum size.
Can be used to make a repeating fragment of the columns or rows list. See MDN.
@param — - The number of times to repeat the fragment.
@param — - The fragment to repeat.
The preferred aspect ratio for the box, which will be used in the calculation of auto sizes and some other layout functions. See MDN.
value: Responsive<RatioType>;Override the hierarchical level.
level?: 0 | 1 | 2;Use notices to highlight information that affects a section, feature or page. Draw attention without interrupting users from their current task.
export function Notice(props: NoticeProps): import("react").ElementPickers allow users to choose a single option from a collapsible list of options when space is limited.
export const Picker: <T>(props: PickerProps<T> & { }) => import("react").ReactElement = ...Alignment of the menu, relative to the picker. Only relevant when
used in combination with the menuWidth prop.
@default — 'start'
Whether the element should receive focus on render.
autoFocus?: boolean;Direction the menu will render relative to the picker.
@default — 'bottom'
A fixed width for the menu. By default, the menu will match the width of the picker. Values less than the width of the picker are ignored.
menuWidth?: number;Whether the menu should automatically flip direction when space is limited.
@default — true
Returns the function configured for client-side navigation.
export function useNavigate(): Router["navigate"]Returns the current application-relative pathname.
export function usePathname(): stringReturns the current query string, including the leading question mark.
export function useSearch(): stringResolve an application-relative href for an anchor element.
useHref?: (href: string) => string;Return the current application-relative pathname. This hook must have a stable identity.
usePathname?: () => string;Return the current query string, including the leading question mark. This hook must have a stable identity.
useSearch?: () => string;Replace the current history entry instead of adding a new one.
replace?: boolean;Switches allow users to turn an individual option on or off. They are usually used to activate or deactivate a specific setting.
export const Switch: import("react").ForwardRefExoticComponent<SwitchProps> = ...The prominence of the switch element.
@default — 'default'
The size of the switch element.
@default — 'regular'
Common list item component for menus and pickers.
export const ListItem: CompWithAsProp<ListItemProps, "div"> = ...A list of options that can allow selection of one or more.
export const ListBox: <T>(props: ListBoxProps<T> & { }) => import("react").ReactElement = ...@private —
type ListBoxBaseProps<T> = {Whether to auto focus the listbox or an option.
autoFocus?: boolean | import("@react-types/shared").FocusStrategy;Whether focus should wrap around when the end/start is reached.
shouldFocusWrap?: boolean;A floating text label that succinctly describes the function of an interactive element, typically an icon-only button.
Tooltips are invoked on hover and keyboard focus. They cannot include interactive elements.
TooltipTrigger wraps around a trigger element and a Tooltip. It handles opening and closing the Tooltip when the user hovers over or focuses the trigger, and positioning the Tooltip relative to the trigger.
export let TooltipTrigger: (props: TooltipTriggerProps) => import("react").Element = ...The tone of the tooltip.
@default — 'neutral'
Calendars display a grid of days in one or more months and allow users to select a single date.
export const Calendar: <T extends import("react-stately").DateValue>(props: CalendarProps<T> & { }) => import("react").ReactElement = ...RangeCalendars display a grid of days in one or more months and allow users to select a contiguous range of dates.
export const RangeCalendar: <T extends import("react-stately").DateValue>(props: RangeCalendarProps<T> & { }) => import("react").ReactElement = ...The number of months to display at once. Up to 3 months are supported.
@default — 1
The number of months to display at once. Up to 3 months are supported.
@default — 1
A checkbox group allows users to select one or more items from a list of choices.
export const CheckboxGroup: import("react").ForwardRefExoticComponent<CheckboxGroupProps> = ...Indeterminism is presentational only. The indeterminate visual representation remains regardless of user interaction.
isIndeterminate?: boolean;The visual prominence of the checkbox.
@default — 'default'
Whether the element should be selected (uncontrolled).
defaultSelected?: boolean;Whether user input is required on the input before form submission.
isRequired?: boolean;Whether the element should be selected (controlled).
isSelected?: boolean;Handler that is called when the element's selection state changes.
onChange?: (isSelected: boolean) => void;The axis the checkboxes should align with.
@default — 'vertical'
A combobox combines a text input with a listbox, and allows users to filter a list of options.
export const Combobox: <T>(props: ComboboxProps<T> & { }) => import("react").ReactElement = ...This component is not accessible, use with caution.
A multi-combobox combines a text input with a listbox, and allows users to filter a list of options.
Alignment of the menu, relative to the combobox. Only relevant when
used in combination with the menuWidth prop.
@default — 'start'
Direction the menu will render relative to the combobox.
@default — 'bottom'
The current loading state of the Combobox. Determines whether or not the progress circle should be shown.
loadingState?: import("@react-types/shared").LoadingState;The interaction required to display the menu.
NOTE: this prop has no effect on the mobile experience.
@default — 'input'
A fixed width for the menu. By default, the menu will match the width of the combobox. Values less than the width of the combobox are ignored.
NOTE: this prop has no effect on the mobile experience.
Whether the menu should automatically flip direction when space is limited.
@default — true
Method that is called when the open state of the menu changes. Returns the new open state and the action that caused the opening of the menu.
onOpenChange?: (isOpen: boolean) => void;The value of the ComboBox input (controlled).
inputValue?: string;The default value of the ComboBox input (uncontrolled).
defaultInputValue?: string;Handler that is called when the ComboBox input value changes.
onInputChange?: (value: string) => void;The value of the ComboBox input.
inputValue: string;Navigation lists let users navigate the application.
export const NavList: import("react").ForwardRefExoticComponent<NavListProps & { }> = ...An item within a NavList.
Indicate which item represents the current item. Typically "page" will be the appropriate value. See MDN.
'aria-current'?: boolean | "page" | "step" | "location" | "date" | "time";The URL that the hyperlink points to.
href: string;Render a group of navigation links.
export function NavGroup(props: NavGroupProps): import("react").ElementIndicate which item represents the current item. Typically "page" will be the appropriate value. See MDN.
'aria-current'?: boolean | "page" | "step" | "location" | "date" | "time";The URL that the hyperlink points to.
href: string;Handler that is called when a user performs any action on an item.
Generally prefer the more specific onSelectionChange and
onExpandedChange handlers.
Whether focus should wrap around when the end/start is reached.
@default — false
The ref attached to the scrollable body. Used to provided automatic scrolling on item focus for non-virtualized trees.
scrollRef?: import("react").RefObject<HTMLElement | null>;The currently selected key in the collection.
selectedKey?: import("@react-types/shared").Key | null;Handler that is called when the selection changes.
onSelectionChange?: (key: import("@react-types/shared").Key) => any;A low-level utility component that covers the underlying interface while an overlay component is open.
export function Blanket(props: BlanketProps): import("react").ElementThe SVG fill color.
fill: string;The simulated stroke color.
stroke?: string;The size of the indicator.
size: "xsmall" | "small" | "regular";The placement of the overlay element, relative to its target.
@default — 'bottom'
A low-level utility component for implementing things like dialogs and popovers, in a layer above the page.
export const Modal: import("react").ForwardRefExoticComponent<ModalProps & { }> = ...A low-level utility component for implementing things like info dialogs, menus and pickers.
export const Popover: import("react").ForwardRefExoticComponent<PopoverProps & { }> = ...A low-level utility component for implementing transitions, which safely unmount children after their animation has completed.
export const Transition: (props: TransitionProps) => import("react").ReactNode = ...A low-level utility component for implementing things like info dialogs, menus and pickers. They should only ever be displayed on devices with small screens, for interfaces where popovers wouldn't be appropriate.
export const Tray: import("react").ForwardRefExoticComponent<TrayProps & { }> = ...Meters are visual representations of a quantity or an achievement. Their progress is determined by user actions, rather than system actions.
export const Meter: import("react").ForwardRefExoticComponent<MeterProps & import("react").RefAttributes<HTMLDivElement>> = ...ProgressBars show the progression of a system operation: downloading, uploading, processing, etc., in a visual way. They can represent either determinate or indeterminate progress.
export const ProgressBar: import("react").ForwardRefExoticComponent<ProgressBarProps & import("react").RefAttributes<HTMLDivElement>> = ...Progress circles show the progression of a system operation such as downloading, uploading, processing, etc. in a visual way. They can represent determinate or indeterminate progress.
export const ProgressCircle: import("react").ForwardRefExoticComponent<ProgressCircleProps & import("react").RefAttributes<HTMLDivElement>> = ...The tone of the meter.
@default — 'neutral
Whether the value's label is displayed.
True by default if there's a label, false by default if not.
The display format of the value label.
@default — { style: 'percent' }
Whether progress is indeterminate.
isIndeterminate?: boolean;Whether progress is indeterminate.
isIndeterminate?: boolean;The size of the circle.
@default — 'medium'
The current value (controlled).
@default — 0
The smallest value allowed for the input.
@default — 0
The largest value allowed for the input.
@default — 100
This is a hack for sure. The thing is, getting a component to intelligently
infer props based on a component or JSX string passed into an elementType prop is
kind of a huge pain. Getting it to work and satisfy the constraints of
forwardRef seems dang near impossible. To avoid needing to do this awkward
type song-and-dance every time we want to forward a ref into a component
that accepts an elementType prop, we abstract all of that mess to this function for
the time time being.
DateFields allow users to enter and edit date and time values using a keyboard. Each part of a date value is displayed in an individually editable segment.
export const DateField: <T extends import("react-stately").DateValue>(props: DateFieldProps<T> & { }) => import("react").ReactElement = ...DatePickers combine a DateField and a Calendar popover to allow users to enter or select a date and time value.
export const DatePicker: <T extends import("react-stately").DateValue>(props: DatePickerProps<T> & { }) => import("react").ReactElement = ...DateRangePickers combine two DateFields and a RangeCalendar popover to allow users to enter or select a date and time range.
export const DateRangePicker: <T extends import("react-stately").DateValue>(props: DateRangePickerProps<T> & { }) => import("react").ReactElement = ...TimeFields allow users to enter and edit time values using a keyboard. Each part of the time is displayed in an individually editable segment.
export const TimeField: <T extends import("react-stately").TimeValue>(props: TimeFieldProps<T> & { }) => import("react").ReactElement = ...Callback that is called for each date of the calendar. If it returns true, then the date is unavailable.
isDateUnavailable?: (date: import("react-stately").DateValue) => boolean;A placeholder date that influences the format of the placeholder shown when no value is selected. Defaults to today's date at midnight.
placeholderValue?: T;Whether to display the time in 12 or 24 hour format. By default, this is determined by the user's locale.
hourCycle?: 12 | 24;Determines the smallest unit that is displayed in the date picker. By default, this is "day" for dates, and "minute" for times.
Whether to hide the time zone abbreviation.
@default — false
Whether to always show leading zeros in the month, day, and hour fields. By default, this is determined by the user's locale.
shouldForceLeadingZeros?: boolean;The maximum number of months to display at once in the calendar popover, if screen space permits.
@default — 1
Whether the calendar popover should automatically flip direction when space is limited.
@default — true
Whether to display the time in 12 or 24 hour format. By default, this is determined by the user's locale.
hourCycle?: 12 | 24;Determines the smallest unit that is displayed in the time picker.
@default — 'minute'
Whether to hide the time zone abbreviation.
hideTimeZone?: boolean;A placeholder time that influences the format of the placeholder shown when no value is selected. Defaults to 12:00 AM or 00:00 depending on the hour cycle.
placeholderValue?: T;Displays a list of interactive items, and allows a user to navigate, select, or perform an action.
export const ListView: <T>(props: ListViewProps<T> & { }) => import("react").ReactElement = ...Sets the amount of vertical padding within each cell.
@default — 'regular'
Whether the ListView should be displayed with a quiet style.
isQuiet?: boolean;The current loading state of the ListView. Determines whether or not the progress circle should be shown.
loadingState?: import("@react-types/shared").LoadingState;Sets the text behavior for the row contents.
@default — 'truncate'
Sets what the ListView should render when there is no content to display.
renderEmptyState?: () => import("react").Element;Handler that is called when a user performs an action on an item. The exact user event depends on
the collection's selectionStyle prop and the interaction modality.
The drag and drop hooks returned by useDragAndDrop used to enable drag and drop behavior for the ListView.
Action bars are used for single and bulk selection patterns when a user needs to perform actions on one or more items at the same time.
export const ActionBar: <T>(props: ActionBarProps<T> & { }) => import("react").ReactElement = ...ActionBarContainer wraps around an ActionBar and a component that supports selection. It handles the ActionBar's position with respect to its linked component.
export const ActionBarContainer: import("react").ForwardRefExoticComponent<ActionBarContainerProps & { }> = ...Unique ID used to auto-save the pane arrangement.
autoSaveId?: string;The primary and secondary split panes.
children: [import("react").ReactElement, import("react").ReactElement];The default size of the primary pane, in pixels.
defaultSize: number;Control the collapsed state of the primary pane.
isCollapsed?: boolean;The minimum size of the primary pane, in pixels.
minSize: number;The minimum size of the primary pane, in pixels.
maxSize: number;Callback that is called when the user collapses or expands the primary
pane. A collapse event is triggered when the primary pane is dragged beyond
half its minimum size, or the user presses the Enter key while the resize
handle is focused.
Because we visually hide the resize handle (unless focused) to complete the
collapsed appearance, an expand event will only occur when the user
presses the Enter key on a collapsed resize handle—you MUST implement an
alternative "expand" interaction for pointer users.
Callback that is called when the user resizes the panes.
onResize?: (value: number) => void;Internal component for default appearance and behaviour.
export const TextFieldPrimitive: import("react").ForwardRefExoticComponent<TextFieldPrimitiveProps & { }> = ...When true, text will wrap onto multiple lines using a textarea instead of
the traditional input element.
Text fields allow users to input text with a keyboard.
export const TextField: import("react").ForwardRefExoticComponent<TextFieldProps & { }> = ...Text areas allow users to input multiple lines of text with a keyboard.
export const TextArea: import("react").ForwardRefExoticComponent<TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>> = ...Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
'aria-activedescendant'?: string;Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.
'aria-autocomplete'?: "none" | "inline" | "list" | "both";Identifies the element that provides an error message for the object.
'aria-errormessage'?: string;Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
'aria-haspopup'?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog";A typographic device used to communicate levels of hierarchy between text.
export const Heading: CompWithAsProp<HeadingProps, "h3"> = ...A utility component for displaying emoji characters accessibly. Emojis can add playfulness to your interface, but require formatting to ensure that they are accessible for all users.
export const Emoji: import("react").ForwardRefExoticComponent<EmojiProps & { }> = ...Represents text that specifies a keyboard command.
export const Kbd: import("react").ForwardRefExoticComponent<KbdProps & { }> = ...A typographic component that adds styles for rendering remote HTML content.
export const Prose: CompWithAsProp<ProseProps, "div"> = ...Label used to describe the symbol that will be announced to screen readers.
label?: string;Emoji symbol.
symbol: string;Prefix with OS-specific "alt" key.
@MacOS — ⎇
@Windows — Alt
Prefix with OS-specific "meta" key.
@MacOS — ⌘
@Windows — Ctrl
Prefix with OS-specific "shift" key.
@MacOS — ⇧
@Windows — Shift
A slot to place the shortcut text.
@default — 'kbd'
How the value should be abbreviated, if at all.
abbreviate?: boolean | "short" | "long";The currency to use when formatting "currency" values. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, etc.
currency?: string;Override the default precision. Supports a tuple for min/max.
precision?: number | [number, number];The unit to use when formatting "unit" values. Possible values may be concatenated with "-per-" to make a compound unit.
unit?: string;The numeric value to format.
value: number;Breadcrumbs show hierarchy and navigational context for a user's location within an application.
export const Breadcrumbs: <T>(props: BreadcrumbsProps<T> & { }) => import("react").ReactElement = ...The breadcrumb items.
children: import("react").ReactElement<import("@react-types/shared").ItemProps<T>> | import("react").ReactElement<import("@react-types/shared").ItemProps<T>>[];Whether the Breadcrumbs are disabled.
isDisabled?: boolean;Called when an item is acted upon (usually selection via press).
onAction?: (key: import("react").Key) => void;Whether to always show the root item if the items are collapsed.
showRoot?: boolean;Size of the Breadcrumbs including spacing and layout.
@default — 'regular'
Group related action buttons together.
export const ActionGroup: <T>(props: ActionGroupProps<T> & { }) => import("react").ReactElement = ...Sets the amount of space between buttons.
@default — 'regular'
Whether the buttons should be justified in their container.
isJustified?: boolean;Defines the behavior of the group when the buttons do not fit in the available space. When set to 'wrap', the items wrap to form a new line. When set to 'collapse', the items that do not fit are collapsed into a dropdown menu.
@default — 'wrap'
Defines when the text within the buttons should be hidden and only the icon should be shown. When set to 'hide', the text is always shown in a tooltip. When set to 'collapse', the text is visible if space is available, and hidden when space is limited. The text is always visible when the item is collapsed into a menu.
@default — 'show'
The prominence of each button in the group.
@default — 'default'
The icon to display in the dropdown menu trigger button when a selectable group is collapsed.
summaryIcon?: import("react").ReactElement;Number fields let users enter a numeric value and incrementally increase or decrease the value with a step-button control.
export const NumberField: import("react").ForwardRefExoticComponent<NumberFieldProps & { }> = ...A custom aria-label for the decrement button. If not provided, the localized string "Decrement" is used.
decrementAriaLabel?: string;A custom aria-label for the increment button. If not provided, the localized string "Increment" is used.
incrementAriaLabel?: string;Formatting options for the value displayed in the number field. This also affects what characters are allowed to be typed by the user.
formatOptions?: NumberFormatOptions;Whether to hide the increment and decrement buttons.
hideStepper?: boolean;Search fields are text fields, specifically designed for search behaviour.
export const SearchField: import("react").ForwardRefExoticComponent<{Handler that is called when the field is submitted.
onSubmit?: (value: string) => void;Handler that is called when the clear button is pressed.
onClear?: () => void;Whether to show the magnifying glass icon.
@default — : true
Status lights describe the state or condition of an entity.
export const StatusLight: import("react").ForwardRefExoticComponent<StatusLightProps & { }> = ...An accessibility role for the status light. Should be set when the status can change at runtime, and no more than one status light will update simultaneously.
role?: "status";The tone of the status light, which indicates semantic meaning.
@default — 'neutral'
A DropZone is an area into which one or multiple objects can be dragged and dropped.
export const DropZone: CompWithAsProp<DropZoneProps, "div"> = ...A FileTrigger allows a user to access the file system with any pressable component, or custom components built with usePress.
export const FileTrigger: import("react").ForwardRefExoticComponent<FileTriggerProps & import("react").RefAttributes<HTMLInputElement>> = ...Specifies what mime type of files are allowed.
acceptedFileTypes?: string[];Whether multiple files can be selected.
allowsMultiple?: boolean;Specifies the use of a media capture mechanism to capture the media on the spot.
defaultCamera?: "user" | "environment";Handler when a user selects a file.
onSelect?: (files: FileList | null) => void;Provides the hooks required to enable drag and drop behavior for a drag and drop compatible React Spectrum component.
export function useDragAndDrop(options: DragAndDropOptions): DragAndDropHooksA function that returns the items being dragged. If not specified, we assume that the collection is not draggable.
@default — () => []
Provide a custom drag preview. draggedKey represents the key of the item the user actually dragged.
Drag and drop hooks for the collection element.
dragAndDropHooks: DragHooks & DropHooks & {Password fields are text fields for entering secure text.
export const PasswordField: import("react").ForwardRefExoticComponent<PasswordFieldProps & { }> = ...The input autocomplete type.
@default — "current-password"
Allow users to reveal the input text. When true, a button is displayed that toggles secure text entry.
@default — true
Contextual help shows a user extra information about an adjacent component.
export const ContextualHelp: import("react").ForwardRefExoticComponent<ContextualHelpProps & { }> = ...The placement of the popover with respect to the action button.
@default — 'bottom start'
Indicates whether contents are informative or provides helpful guidance.
@default — 'help'