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.
Props API#
Container Props API
- as
ElementTypeDefault'div'Override the base element
- children
ReactNodeRequiredSpecifies the contents of the container
- fluid
booleanDefaulttrueFill all available space at any breakpoint
- bsPrefix
stringDefault'container'Overrides underlying component base CSS class name
- size
'xs'|'sm'|'md'|'lg'|'xl'Set the maximum width for the container. Omiting the prop will remove the max-width
Usage Insights#
Container
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| edx-ora2 | 21.13.1 | 1 | |
| frontend-app-account | 23.14.8 | 2 | |
| frontend-app-admin-portal | 22.20.3 | 18 | |
| frontend-app-communications | 23.12.2 | 4 | |
| frontend-app-authn | 23.16.0 | 4 | |
| frontend-app-communications | 23.14.2 | 1 | |
| frontend-app-course-authoring | 23.16.0 | 34 | |
| frontend-app-enterprise-public-catalog | 22.20.5 | 4 | |
| frontend-app-discussions | 23.16.0 | 8 | |
| frontend-app-learner-record | 23.16.0 | 1 | |
| frontend-app-library-authoring | 21.11.3 | 3 | |
| frontend-app-learner-record | 23.4.5 | 1 | |
| frontend-app-payment | 22.9.0 | 12 | |
| frontend-app-publisher | 23.14.8 | 2 | |
| frontend-app-support-tools | 23.4.2 | 3 | |
| frontend-component-header-edx | 23.6.1 | 1 | |
| catalog-search | 22.20.5 | 1 | |
| frontend-lib-special-exams | 23.4.2 | 12 | |
| frontend-platform | 23.4.3 | 1 | |
| frontend-template-application | 23.16.0 | 1 |