Container

Installation

Install the component via the CLI in one command.

npx shadcn@latest add @intentui/container

Manual installation

Use this approach if you prefer to install and wire up the component yourself instead of using the CLI.

npm install tailwind-merge

Examples

Constrained

The Container component has constrained props, which means it won't have padding on mobile devices. By default, it will be false.

<Container constrained />

Component API

Container

Container extends the native <div> element.

classNamestring
constrainedboolean
Default: false
Design