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
Show editable code example
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
Default'div'Override the base element
- children
node
- fluid
bool
DefaulttrueFill all available space at any breakpoint
- size
enum
"xs" | "sm" | "md" | "lg" | "xl"Set the maximum width for the container
Usage Insights#
Container
Project Name | Paragon Version | Instance Count | |
---|---|---|---|
edx-ora2 | 20.9.2 | 1 | |
frontend-app-account | 20.46.3 | 2 | |
frontend-app-admin-portal | 20.46.3 | 14 | |
frontend-app-authn | 20.46.2 | 1 | |
frontend-app-communications | 20.46.2 | 1 | |
frontend-app-course-authoring | 20.46.2 | 15 | |
frontend-app-enterprise-public-catalog | 20.46.3 | 4 | |
frontend-app-learner-dashboard | 20.46.2 | 3 | |
frontend-app-learner-portal-enterprise | 20.45.4 | 39 | |
frontend-app-learner-record | 20.46.3 | 1 | |
frontend-app-library-authoring | 21.5.6 | 2 | |
frontend-app-ora-grading | 20.46.3 | 1 | |
frontend-app-support-tools | 20.46.0 | 6 | |
frontend-component-header-edx | 21.5.6 | 1 | |
frontend-component-header | 21.5.6 | 1 | |
catalog-search | 20.45.0 | 1 | |
frontend-lib-content-components | 21.5.6 | 5 | |
frontend-lib-special-exams | 20.44.0 | 12 | |
frontend-platform | 21.5.6 | 1 | |
frontend-template-application | 20.46.3 | 1 | |
prospectus | 20.46.2 | 103 |