-
Notifications
You must be signed in to change notification settings - Fork 42
Content block
Core
Layout component
The Content block is a reusable core component used to help you build more complex patterns by placing them within the Carbon 2x grid or a Content section. Many of the options available at this level are optional providing you with more flexibility.
Used by (11)
- Content block accordion
- CTA block
- Card section offset
- Content block cards
- Content block horizontal
- Content block media
- Content block mixed groups
- Content block segmented
- Content block simple
- Lead space block
- Logo grid
Back links (18)
CTA (1)
- Content block
- Content block accordion is made up of a Content block with
- the Card group inside the Content block children
- Content block provides us the visual consistency of our other...
- See Content block for more
- or more_** within the Content block
- ...Content block media is a decorator of the Content block,
Content block mixed groups (1)
- ...block mixed groups component leverages the Content block
- ...Content block simple is a decorator of the Content block,
- a Content block. It includes a section heading with any number...
- Content block. It includes Content group with any number...
Content group (1)
- Content block level component. It can have 1 or more children,...
Content section (1)
- Is this an
H2
even when it has a child of Content block that is also
Lead space block (1)
- Content block
Link list (1)
- of a main Content block
- Check out Content block to see how it leverages the anatomy
- See the example below to see how Content block was abstracted
- _An example using Content block
optional
string
An optional short String
of text to indicate a change in topic at an H2
heading level.
optional
markdown
An optional String
of text formatted using the Markdown utility. It
provides the component with a high level overview of its content.
All other options should be ignored.
props | description | |
---|---|---|
2.1 |
*italic* |
The italic option should be included. |
2.2 |
<p>new line</p> |
The new line paragraph feature should be included. |
See Markdown utility for more information.
optional
container
An optional container area that child components, and other content types can be passed into.
optional
component
An optional CTA that allows a user to navigate to related content.
props | values | |
---|---|---|
4.1 |
type |
All types |
4.2 |
style |
All styles except for card
|
See CTA for more information.
optional
container
An optional secondary container for child components, and other content types. The content provided in this container should be secondary supporting content towards the component's main content.
condition | description | |
---|---|---|
5.1 |
aside === true |
If aside is true and contains children then Layout 5.3 is used to wrap content. |
5.2 |
aside === false |
If the aside is not provided or missing children than Layout 5.3 is NOT included. |
built-in
component
If rendered, the Layout utility helps lay the main content and the Aside 5 container next to each other properly within the Carbon 2x grid.
props | values | |
---|---|---|
5.3.1 |
type |
8-4 |
5.3.2 |
nested |
true |
See Layout for more information.
Publishing guidelines (6)
Layout component (37)
- CTA block
- CTA section
- Callout media
- Callout quote
- Callout
- Card group
- Card section carousel
- Card section images
- Card section offset
- Card section simple
- Card section
- Content block cards
- Content block horizontal
- Content block media
- Content block mixed groups
- Content block segmented
- Content block simple
- Content block
- Content group banner
- Content group cards
- Content group pictograms
- Content group simple
- Content group
- Content item horizontal
- Content item
- Content section
- Dotcom shell
- Feature section
- Lead space block
- Lead space search
- Lead space
- Link list section
- Logo grid
- Table of contents
- Tabs extended media
- Tabs extended
- Universal banner
Service (3)
UI component (34)
- Back to top
- Background media
- Button group
- CTA
- Card in card
- Card link
- Card
- Carousel
- Expressive modal
- Feature card
- Filter group
- Filter panel
- Footer
- Image with caption
- Image
- Input select
- Leaving ibm
- Lightbox media viewer
- Link list
- Link with icon
- Locale modal
- Masthead L0
- Masthead L1
- Masthead account
- Masthead mobile
- Masthead navigation
- Masthead
- Mega menu
- Pictogram item
- Quote
- Search typeahead
- Tag group
- Tag link
- Video