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 | |
|---|---|---|---|
| frontend-platform | 23.20.0 | 1 | |
| frontend-lib-special-exams | 23.4.2 | 12 | |
| catalog-search | 22.20.5 | 1 | |
| frontend-app-support-tools | 23.4.2 | 11 | |
| frontend-app-publisher | 23.14.8 | 2 | |
| frontend-app-ora-grading | 23.19.1 | 1 | |
| frontend-app-library-authoring | 21.11.3 | 2 | |
| frontend-app-learning | 23.19.2 | 1 | |
| frontend-app-learner-record | 23.19.2 | 1 | |
| frontend-app-learner-portal-enterprise | 22.20.6 | 34 | |
| frontend-app-learner-dashboard | 23.19.2 | 2 | |
| frontend-app-enterprise-public-catalog | 22.20.5 | 5 | |
| frontend-app-course-authoring | 23.20.3 | 22 | |
| frontend-app-communications | 23.19.1 | 1 | |
| frontend-app-authn | 23.19.2 | 1 | |
| frontend-app-admin-portal | 22.20.3 | 18 | |
| frontend-app-account | 23.19.2 | 2 | |
| edx-ora2 | 21.13.1 | 1 |