Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Container

A generic <div> wrapper that accepts all native HTML div attributes. Use it when you need a themeable block container without pulling in Card or other semantic wrappers.

Import

import { Container } from '@bgunnarsson/react-primitives'

Usage

<Container className="mx-auto max-w-5xl px-4">
  {children}
</Container>

Notes

  • Renders as <div>. For semantic landmarks use Header, Footer, or Nav.
  • Accepts every React.HTMLAttributes<HTMLDivElement> prop.