Skip to content

Primer React Box component examples appear out of date #2881

@ktravers

Description

@ktravers

Description

In the docs for the Box component, the examples all use props that no longer appear to be available for this component.

For example, my team recently tried to use the gridGap prop as documented here, which resulted in the following linter failure: https://janky.githubapp.com/80188803/output.

Steps to reproduce

  1. In a codebase with Primer React important, attempt to use any of the Box component code examples as currently documented. For example:
    <Box display="grid" gridTemplateColumns="1fr 1fr" gridGap={3}>
      <Box p={3} borderColor="border.default" borderWidth={1} borderStyle="solid">
        1
      </Box>
      <Box p={3} borderColor="border.default" borderWidth={1} borderStyle="solid">
        2
      </Box>
      <Box p={3} borderColor="border.default" borderWidth={1} borderStyle="solid">
        3
      </Box>
    </Box>
  2. Observe primer-react/no-system-props error(s)

Version

35.18.0

Browser

Chrome, Safari, Firefox

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreact

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions