Extensions

Press shift + S to search API reference.

React component

Props

interface BoxProps extends AllStylesProps, AriaProps, TooltipAnchorProps
as"div" | "span" | "section" | "main" | "nav" | "header" | "footer" | "aside" | "article" | "address" | "hgroup" | "blockquote" | "figure" | "figcaption" | "ol" | "ul" | "li" | "pre"

The element that is rendered. Defaults to div.

childrenReact.ReactNode | string

The contents of the box.

classNameundefined | string

Additional class names to apply, separated by spaces.

dataAttributesDataAttributesProp

Data attributes that are spread onto the element, e.g. dataAttributes={{'data-*': '...'}}.

idundefined | string

The id attribute.

roleundefined | string

The role attribute.

styleReact.CSSProperties

Additional styles.

tabIndexundefined | number

The tabIndex attribute.