Theme

npm_versionnpm Paragon package page

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

    Specifies the contents of the container

  • fluid bool

    Fill all available space at any breakpoint

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

    Set the maximum width for the container

  • bsPrefix string

    Overrides underlying component base CSS class name

    Default'container'

Usage Insights#

Container

Project NameParagon VersionInstance Count
frontend-app-account20.46.32
frontend-app-admin-portal20.46.315
frontend-app-authn20.46.21
frontend-app-communications20.46.21
frontend-app-course-authoring21.5.621
frontend-app-enterprise-public-catalog20.46.34
frontend-app-learner-dashboard20.46.23
frontend-app-learner-portal-enterprise20.45.444
frontend-app-learner-record20.46.31
frontend-app-library-authoring21.5.62
frontend-app-ora-grading20.46.31
frontend-app-support-tools20.46.06
frontend-component-header-edx21.5.61
frontend-component-header21.5.61
catalog-search20.45.01
frontend-lib-content-components21.5.65
frontend-lib-special-exams20.44.012
frontend-platform21.5.61
frontend-template-application21.5.61
prospectus20.46.2102