-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(design): update container component documentation (#2894)
- Loading branch information
Showing
2 changed files
with
26 additions
and
19 deletions.
There are no files selected for viewing
26 changes: 15 additions & 11 deletions
26
apps/design-land/src/app/container/container.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
# Container | ||
Container is a basic structural element that can be used to restrict content to a specific width. Containers are not responsible for providing padding or margin. | ||
Container is a basic structural element that restricts page content to a specific maximum width. | ||
|
||
## Overview | ||
Container comes with pre-defined sizes that work well with common breakpoints. It's not responsible for providing padding or margin. | ||
|
||
## Size | ||
The size of a container can be defined by using the `size` property. There is no default size set. | ||
|
||
Supported sizes: `xs | sm | md | lg | xl` | ||
|
||
| Size | Syntax | Max wdith | | ||
| ----------- | ------ | --------- | | ||
| Extra small | xs | 640px | | ||
| Small | sm | 800px | | ||
| Medium | md | 1040px | | ||
| Large | lg | 1340px | | ||
| Extra large | xl | 1920px | | ||
| Description | Max Width | Value | | ||
| ----------- | --------- | ------ | | ||
| Extra Small | 640px | xs | | ||
| Small | 800px | sm | | ||
| Medium | 1040px | md | | ||
| Large | 1340px | lg | | ||
| Extra Large | 1920px | xl | | ||
|
||
## Usage | ||
<design-land-example-viewer-container example="container-sizes"></design-land-example-viewer-container> |