News Item
The News Item component provides a reusable pattern for newsitem in the interface.
Newsitem
A plain newsitem component.
Standing
The standing variant of the newsitem component.
Stack
The stack variant of the newsitem component.
API
| Parameter | Default | Type | Description |
|---|---|---|---|
|
heading
|
null | ?string | - |
|
subHeading
|
null | ?string | - |
|
content
|
null | ?string | - |
|
image
|
null | ?array | - |
|
date
|
null | ?array | - |
|
readTime
|
null | ?string | - |
|
standing
|
false | boolean | - |
|
link
|
null | ?string | - |
|
headerRightArea
|
null | mixed | - |
|
headerLeftArea
|
null | mixed | - |
|
titleLeftArea
|
null | mixed | - |
|
titleRightArea
|
null | mixed | - |
|
contentLeftArea
|
null | mixed | - |
|
contentRightArea
|
null | mixed | - |
|
hasPlaceholderImage
|
null | ?boolean | - |
CSS API
| Variable | Default | Type | Values | Description |
|---|---|---|---|---|
|
--c-newsitem--space
|
var(--space) | range | - | Base spacing unit. Used for padding and margin inside components. |
|
--c-newsitem--border-width
|
var(--border-width) | range | - | Size |
|
--c-newsitem--color--surface-border
|
var(--color--surface-border) | color | - | Manual companion token for borders on surface elements. |
|
--c-newsitem--color--surface-contrast
|
var(--color--surface-contrast) | color | - | Used for text and icons on surface backgrounds with less contrast. |
|
--c-newsitem--font-size-400
|
var(--font-size-400) | range | - | Three steps above base in the type scale. Equivalent to h4. |