Segment
The Segment component provides a reusable pattern for segment in the interface.
Full Width Section
This layout gives you the ability to put the main content to the left
Full Width Section - Width Cards
Full width content with sub components in slot.
Split Section
This layout gives you the ability to put the main content to the left
Fusce Amet Parturient Etiam
Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Hey! Have you seen this?
You can add a card inside this split section, or any other component. Awesome!
Reversed Split Section
This layout gives you the ability to put the main content to the left
Fusce Amet Parturient Etiam
Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Featured Section
This layout gives you the ability to put the main content to the left
Fusce Amet Parturient Etiam
Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Fusce Amet Parturient Etiam
Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Fusce Amet Parturient Etiam
Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Stacked Split Section
Demonstrates how a stacked array of sections look like.
Fusce Amet Parturient Etiam
Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Fusce Amet Parturient Etiam
Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Fusce Amet Parturient Etiam
Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Card Section
This is a card that adapts to the width of the viewport.
Fusce Amet Parturient Etiam
Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Fusce Amet Parturient Etiam
Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Fusce Amet Parturient Etiam
Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Fusce Amet Parturient Etiam (no image, placeholder enabled)
Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Segment with Call-to-Action Buttons
Demonstrates rendering a full-width segment with two call-to-action buttons placed beneath the content.
Segment with Date, Meta and Tags
Shows a split segment using date, meta label, and tags for article or event-style layouts.
Fusce Amet Parturient Etiam
Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Segment with Icon
Demonstrates the icon and iconBackgroundColor parameters displayed in a featured layout segment.
Fusce Amet Parturient Etiam
Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Large Text Segment
Shows the textSize large variant which increases the content font size on medium and larger screens.
Fusce Amet Parturient Etiam
Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Full Width with Light Overlay
Demonstrates the light overlay variant which applies a subtle brightness filter to the background image.
Segment Without Padding
Shows paddingTop and paddingBottom set to false, removing vertical spacing from a split segment.
Fusce Amet Parturient Etiam
Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
Stretched Segment
Demonstrates the stretch parameter which bleeds the segment to full viewport width, breaking out of its surrounding container.
API
| Parameter | Default | Description |
|---|---|---|
|
layout
|
full-width | Which layout to use |
|
title
|
false | The title of the segment |
|
content
|
false | The content of the segment |
|
textSize
|
default | The sizing of the font |
|
image
|
false | Add a URL for an image |
|
background
|
false | The background color, hex value or a color name (i.e. primary, secondary, etc) |
|
backgroundOverlay
|
false | Which overlay to use |
|
textColor
|
dark | Color of the text |
|
height
|
content | Height behavior of the sections height |
|
paddingTop
|
true | If it should have padding in the top |
|
paddingBottom
|
true | If it should have padding in the bottom |
|
textAlignment
|
top | How to align the text vertically |
|
reverseColumns
|
false | If image and text should change order |
|
overlay
|
false | Add an overlay over an image to make text more legible |
|
stretch
|
false | Always stretch the section vertically. Makes the section the width of the viewport. Requires a centered container. |
|
buttons
|
false | Array of buttons according to the @button specification. Do not use more than two buttons, one primary and on secondary. |
|
date
|
false | The date |
|
meta
|
false | The meta text |
|
tags
|
false | Array of tags according to the tags component |
|
icon
|
false | An array with the same specification as the icon component |
|
iconBackgroundColor
|
The background color of the icon | |
|
link
|
false | Link will be applied to the title and the image (if any). If there is one (1) button defined and no link is defined, the button will be used as the link. |
|
hasPlaceholder
|
true | Sets image specific styling based on the image being a placholder image. |
|
lang
|
[] | An array with labels used in the component. |
CSS API
| Variable | Default | Type | Values | Description |
|---|---|---|---|---|
|
--c-segment--space
|
var(--space) | range | - | Base spacing unit. Used for padding and margin inside components. |
|
--c-segment--base
|
var(--base) | range | - | Main unit that drives radius and spacing scales. |
|
--c-segment--border-radius
|
var(--border-radius) | range | - | Border Radius |
|
--c-segment--color--primary
|
var(--color--primary) | color | - | Primary |
|
--c-segment--color--secondary
|
var(--color--secondary) | color | - | Secondary |
|
--c-segment--font-size-90
|
var(--font-size-90) | range | - | One step below base in the type scale. |
|
--c-segment--font-size-200
|
var(--font-size-200) | range | - | One step above base in the type scale. Equivalent to h6/subtitle. |
|
--c-segment--color--alpha
|
var(--color--alpha) | rgba | - | Used for overlays. Includes opacity — set both color and alpha together. |
|
--c-segment--color--surface-contrast
|
var(--color--surface-contrast) | color | - | Used for text and icons on surface backgrounds with less contrast. |
|
--c-segment--color--alpha-contrast
|
var(--color--alpha-contrast) | color | - | Used for text and icons on alpha overlays. |