Theme

PlaygroundBeta

npm_versionnpm Paragon package page

Container

The base container to contain, pad, and center content in the viewport. This component extends the React-Bootstrap Container.
See React-Bootstrap for more documentation.

Basic Usage

Any Paragon component or export may be added to the code example.

Theme Variables (SCSS)#

$max-width-xs: 464px !default;
$max-width-sm: 708px !default;
$max-width-md: 952px !default;
$max-width-lg: 1192px !default;
$max-width-xl: 1440px !default;

Props API#

Container Props API
  • as elementType

    Override the base element

    Default'div'
  • children node
  • fluid bool

    Fill all available space at any breakpoint

    Defaulttrue
  • size enum"xs" | "sm" | "md" | "lg" | "xl"

    Set the maximum width for the container

Usage Insights#

Container

Project NameParagon VersionInstance Count
edx-ora220.9.21
frontend-app-admin-portal20.26.312
frontend-app-authn20.34.01
frontend-app-communications20.28.51
frontend-app-course-authoring20.32.02
frontend-app-enterprise-public-catalog20.29.04
frontend-app-learner-dashboard20.19.02
frontend-app-learner-portal-enterprise20.31.137
frontend-app-learner-record20.28.41
frontend-app-library-authoring20.30.12
frontend-app-ora-grading19.9.01
frontend-app-profile20.32.31
frontend-app-support-tools20.26.08
catalog-search19.25.11
frontend-lib-content-components20.32.05
frontend-lib-special-exams20.22.412
frontend-platform20.30.11
frontend-template-application20.30.11
prospectus20.28.391