Show

Show is a responsive primitive that displays children at specified breakpoints

Installation

Package installation information
Installyarn add @atlaskit/primitives
SourceBitbucket.org, (opens new window)
npm@atlaskit/primitives, (opens new window)
Bundleunpkg.com, (opens new window)

Props

above

Description

Apply CSS to show this specifically above this breakpoint. The smallest breakpoint is not included as it would always be shown and this would not be performant.

@important do not mix above and below (TypeScript should prevent this).

Type"xs" | "sm" | "md" | "lg" | "xl"

as

Description
No description.
Type"dialog" | "article" | "aside" | "div" | "footer" | "header" | "li" | "main" | "nav" | "ol" | "section" | "span" | "ul"

below

Description

Apply CSS to show this specifically below this breakpoint. The smallest breakpoint is not included as it would never be shown and this would not be performant.

@important do not mix above and below (TypeScript should prevent this).

Type"xs" | "sm" | "md" | "lg" | "xl"

children

Required
Description
No description.
Typestring | number | boolean | ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | React.ReactPortal

xcss

Description

Apply a subset of permitted styles powered by Atlassian Design System design tokens.

TypeStrictXCSSProp<"appearance" | "borderColor" | "grid" | "clipPath" | "filter" | "marker" | "mask" | "translate" | "content" | "color" | "top" | "bottom" | "right" | "left" | "height" | "width" | ... 485 more ... | "glyphOrientationVertical", CSSPseudos, never> | { ...; } | (false | { ...; })[]
Was this page helpful?
We use this feedback to improve our documentation.
© 2026 AtlassianTrademark, (opens new window)Privacy, (opens new window)License