ESLint plugin

The essential plugin for use with the Atlassian Design System.

prefer-primitives

Using primitives allows you to delete bespoke component code and replace it with ready made solutions made by the Atlassian Design System Team.

Examples

This rule marks code as violations when it may be able to be replaced with a primitive component.

Incorrect

<div />
^^^^^^^

<Component>
  <div css={someStyles}></div>
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
</Component>

Correct

<Box />
<Component>
    <Box xcss={someStyles}></Box>
</Component>
Was this page helpful?
We use this feedback to improve our documentation.
  • Design system
    • Get started
    • Foundations
    • Components
    • Rovo UI
    • Tools
    • Release phases
    • Contact us
© 2026 AtlassianTrademark, (opens new window)Privacy, (opens new window)License