EditorialCard
Composable editorial card for article, interview, and media previews.
Quick Preview
May 8, 2023
Starting a Career in Web Design: Mauricio Tonon
It's no secret: Awwwards Masterclasses believe that mentorship is essential and invaluable for creatives. In fact, our courses were explicitly designed for growth.
Read ArticleComposition
Use the public subpath import and compose only the slots you need. EditorialCard does not set a max-width; place it in a grid, flex row, or width-constrained wrapper in the consuming layout.
EditorialCard
├── EditorialCardHeader
│ ├── EditorialCardMeta
│ └── EditorialCardTitle
├── EditorialCardMedia
│ ├── EditorialCardCategory
│ └── EditorialCardPlayButton
├── EditorialCardRating
├── EditorialCardAttribution
├── EditorialCardExcerpt
└── EditorialCardLinkUsage
import {
EditorialCard,
EditorialCardHeader,
EditorialCardMedia,
EditorialCardMeta,
EditorialCardTitle,
} from "@giddaa-housing/ui/editorial-card";
<EditorialCard>
<EditorialCardHeader>
<EditorialCardMeta>May 8, 2023</EditorialCardMeta>
<EditorialCardTitle>Starting a Career in Web Design</EditorialCardTitle>
</EditorialCardHeader>
<EditorialCardMedia />
</EditorialCard>;Examples
Default Editorial Card
Use this as the starting point for article or interview previews.
May 8, 2023
Starting a Career in Web Design: Mauricio Tonon
It's no secret: Awwwards Masterclasses believe that mentorship is essential and invaluable for creatives. In fact, our courses were explicitly designed for growth.
Read ArticleMedia And Play Button
EditorialCardPlayButton is opt-in. Omit it for written articles and include it for playable media. When the video should open over the current page, pass the play button as the trigger for Video Player Dialog, as shown below. Keep navigation and analytics in the consuming app.
May 8, 2023
Starting a Career in Web Design: Mauricio Tonon
It's no secret: Awwwards Masterclasses believe that mentorship is essential and invaluable for creatives.
Read ArticleMay 8, 2023
Starting a Career in Web Design: Mauricio Tonon
It's no secret: Awwwards Masterclasses believe that mentorship is essential and invaluable for creatives.
Read ArticleReviews
EditorialCardRating renders a star rating with an optional numeric score and review source, mirroring TestimonialBlockRating. It scales with the card's size.
May 8, 2023
Starting a Career in Web Design: Mauricio Tonon
It's no secret: Awwwards Masterclasses believe that mentorship is essential and invaluable for creatives.
Read ArticleSizes
The size prop scales spacing, type, media height, avatar, and play button together without constraining width.
May 8, 2023
Starting a Career in Web Design: Mauricio Tonon
It's no secret: Awwwards Masterclasses believe that mentorship is essential and invaluable for creatives.
Read ArticleSm
May 8, 2023
Starting a Career in Web Design: Mauricio Tonon
It's no secret: Awwwards Masterclasses believe that mentorship is essential and invaluable for creatives.
Read ArticleMd
May 8, 2023
Starting a Career in Web Design: Mauricio Tonon
It's no secret: Awwwards Masterclasses believe that mentorship is essential and invaluable for creatives.
Read ArticleLg
Props
| Prop/API | Type | Default | Description |
|---|---|---|---|
size | "sm" | "md" | "lg" | "md" | Scales the editorial card's internal density and media proportions. |
EditorialCardAttribution.authorName | string | required | Author name rendered after the prefix. |
EditorialCardAttribution.brand | { name?: string; photo?: string } | - | Optional brand avatar source. Hidden when no brand data is provided. |
EditorialCardAttribution.prefix | string | "By" | Label before the author name. Set to an empty string to hide it. |
EditorialCardRating.rating | number | required | Rating value clamped to the 0-5 range and rendered as the score/stars. |
EditorialCardRating.source | ReactNode | - | Optional review source. Hidden when omitted. |
EditorialCardRating.totalReviews | number | - | Optional review count rendered with the source when provided. |
EditorialCardRating.reviewLabel | string | "review" / "reviews" | Overrides the generated review-count label. |
EditorialCardRating.showScore | boolean | true | Hides the numeric score when set to false. |
render | Base UI render prop | - | Changes the rendered element while preserving styles. |
className | string | - | Local layout or spacing overrides. |
| native/root props | React component props | - | Passed through to the underlying slot element. |
Accessibility
- Keep
EditorialCardsemantic as anarticleunless the consuming context requires a different element viarender. - Provide meaningful
alttext for informative images; use emptyalt=""only for decorative thumbnails. EditorialCardRatingexposes the star row as an image with a"{rating} out of 5"label, so the rating stays readable whenshowScoreisfalse.EditorialCardPlayButtonincludes a default accessible name; overridearia-labelwhen multiple playable editorial cards need more specific labels.- Use Video Player Dialog for modal playback rather than attaching ad-hoc overlay and media behavior to the card.
- Keep product routing and analytics in the consuming app. Use
EditorialCardLinkwith a realhrefor render it as the app's link component.