Skip to Content
DocumentationCardsCard News

Card News

A content-update card that surfaces an editorial or clinical update with metadata tags, a date, a cover image, a specialty tag, a title, a description, a reviewer and action buttons.

Examples

Unread

The default state of the card. When isRead is absent or false, the card renders with a secondary (green) border and background to draw the user’s attention to new content. The chips and buttons are composed with the existing Tag and Button components.

Tema estudado
Alta prevalência
Atualização de diretriz
Novo
17 mai. 2026
Equipe cirúrgica operando em sala de cirurgia
Foco: Insuficiência Cardíaca
Diretriz Brasileira de Insuficiência Cardíaca 2024 — SBC

A SBC publicou nova diretriz com mudanças no manejo da IC com fração de ejeção reduzida. Inclusão de iSGLT2 (dapagliflozina, empagliflozina) como pilar de primeira linha junto a IECA/BRA-i, betabloqueador e antagonista mineralocorticoide.

Itens de aula em atualização
DM
Pessoa revisoraDra. Manoella Kfouri Ricciardi

Read

Pass isRead to switch the card to a neutral palette (gray border and surface background), signalling the user has already seen this content.

Tema estudado
Alta prevalência
Atualização de diretriz
17 mai. 2026
Equipe cirúrgica operando em sala de cirurgia
Foco: Insuficiência Cardíaca
Diretriz Brasileira de Insuficiência Cardíaca 2024 — SBC

A SBC publicou nova diretriz com mudanças no manejo da IC com fração de ejeção reduzida. Inclusão de iSGLT2 (dapagliflozina, empagliflozina) como pilar de primeira linha junto a IECA/BRA-i, betabloqueador e antagonista mineralocorticoide.

Itens de aula em atualização
DM
Pessoa revisoraDra. Manoella Kfouri Ricciardi

Compact

Use variant="compact" for compact contexts like sidebars or modals where the card needs tighter padding and a more rounded border. Override the background via className when the surface color needs to match the container (e.g. className="bg-gray-background-soft-muted" inside a modal).

Diretriz Brasileira de Insuficiência Cardíaca 2024 — SBC

Atualização de diretriz·
17 mai. 2026

A SBC publicou nova diretriz com mudanças no manejo da IC com fração de ejeção reduzida. Inclusão de iSGLT2 como pilar de primeira linha.

Itens de aula em atualização
DM
Pessoa revisoraDra. Manoella Kfouri Ricciardi

Horizontal

Use orientation="horizontal" to lay the card out as two columns: CardNewsBody (all the content) on the left and CardNewsImage on the right. The image stretches to match the content height and is hidden automatically when the screen is too narrow to fit it.

Atualização de diretriz
17 mai. 2026

Diretriz Brasileira de Insuficiência Cardíaca 2024 — SBC

A SBC publicou nova diretriz com mudanças no manejo da IC com fração de ejeção reduzida.

Itens de aula em atualização
DM
Pessoa revisoraDra. Manoella Kfouri Ricciardi

API

Structure

ComponentDescriptionUsage
CardNewsRoot container with border, rounded corners and spacingWraps all card content. Use orientation and variant to change layout and palette.
CardNewsBodyLeft-column wrapper that holds all content in horizontal layoutsUsed with orientation="horizontal" as the left column (flex-1 flex-col gap-6 min-w-0); place CardNewsHeader, CardNewsContent and CardNewsFooter inside, with CardNewsImage as its sibling on the right.
CardNewsHeaderTop row that spreads tags and date apartHolds CardNewsTags on the left and CardNewsDate on the right
CardNewsTagsWrapping flex row for metadata chipsPlace one or more Tag components inside; they wrap on narrow widths
CardNewsDateDate label with a leading iconRenders a Calendar icon by default plus the date passed as children
CardNewsImageCover image with a neutral fallback backgroundRenders a lazy-loaded img when src is set, otherwise its children
CardNewsContentColumn wrapper for the specialty tag, title, description and authorGroups the main body with consistent 8px spacing
CardNewsTitlePrimary title, clamped to 2 linesMain heading of the update
CardNewsDescriptionBody text, clamped to 3 linesShort summary of the update
CardNewsResourcesLabeled row of lesson-content pill buttonsPass a label and place one or more CardNewsResourceItem inside; they wrap on narrow widths
CardNewsResourceItemSmall outlined button representing a lesson content itemWraps Button with variant="outlined" and size="sm" fixed; pass iconLeft and children like a regular Button
CardNewsAuthorReviewer block: avatar, role and namePass src, name and role; falls back to initials when there is no image. Accepts children to fully override.
CardNewsFooterWrapping action rowPlace Button components inside; they wrap on narrow widths

CardNews

PropTypeDefaultDescription
variant”default” | “read” | “compact""default”Controls the card’s border color, background and padding. "default" uses the secondary palette (green border and tinted background) to highlight new content. "read" switches to a neutral palette (white background, gray border) to signal the content has already been seen. "compact" uses white background with tighter padding and rounded-xl for dense contexts like sidebars or modals.
orientation”vertical” | “horizontal""vertical”"horizontal" lays the card out as two fixed columns: CardNewsBody on the left and CardNewsImage on the right. The image uses its horizontal sizing (w-[482px], stretches to content height) and is hidden below lg when there isn’t room for it, leaving the content full-width.
isReadbooleanfalseShorthand for variant="read". Switches the card to a neutral gray palette (white background, gray border) to indicate the content has already been read.
…propsReact.ComponentProps<“div”>-All native div props are supported.

CardNewsBody

CardNewsBody accepts all native div props plus className. It renders a flex-1 flex-col gap-6 min-w-0 container — no additional props beyond ...ComponentProps<"div">.

CardNewsDate

PropTypeDefaultDescription
iconReact.ReactNode<Calendar />Leading icon rendered before the date.
childrenReact.ReactNode-The date text (e.g. “May 17, 2026”).
…propsReact.ComponentProps<“div”>-All native div props are supported.

CardNewsImage

PropTypeDefaultDescription
srcstring-Image URL. When omitted, the placeholder background (or children) is shown.
altstring""Alternative text for the image.
childrenReact.ReactNode-Fallback content rendered when src is not provided.
…propsReact.ComponentProps<“div”>-All native div props are supported.

CardNewsResources

PropTypeDefaultDescription
labelstring-Secondary label rendered above the button row (e.g. “Lesson items being updated”). Required.
childrenReact.ReactNode-One or more CardNewsResourceItem components.
…propsReact.ComponentProps<“div”>-All native div props are supported.

CardNewsResourceItem

PropTypeDefaultDescription
childrenReact.ReactNode-Button label text.
…propsButtonProps-All Button props are supported (e.g. iconLeft). variant="outlined" and size="sm" are set by default.

CardNewsAuthor

PropTypeDefaultDescription
srcstring-Avatar image URL. Falls back to the author’s initials when omitted.
altstringnameAlternative text for the avatar image.
namestring-Reviewer name, shown in semibold. Also drives the initials fallback.
rolestring-Reviewer role, shown above the name.
childrenReact.ReactNode-Overrides the default avatar + text layout entirely.
…propsReact.ComponentProps<“div”>-All native div props are supported.
Last updated on