Skip to main content
Urbicon UI

InfoCard

Memo-style callout card for inline notes and tips, with intent accent colors and three sizes.

Playground

Size
<InfoCard>All systems operational</InfoCard>

01 Examples

Context information blocks

Basic Usage

<InfoCard intent="info" title="Note">Use InfoCard to display tips.</InfoCard>

Intents

The intent drives the accent border color; info is the default.
<InfoCard intent="success" title="Saved">Your changes are live.</InfoCard>
<InfoCard intent="warning" title="Heads up">This action cannot be undone.</InfoCard>
<InfoCard intent="danger" title="Failed">The build did not complete.</InfoCard>
<InfoCard intent="neutral" title="Aside">Also available as a CLI flag.</InfoCard>

02 Accessibility

Each card is a named landmark

Without href the card renders an <aside>, so it is a complementary landmark — named from title, or from the translated "Note" when there is none. Four callouts on a page are four landmarks: give each one a title, or a screen-reader user gets four stops that all announce the same word.

The title is a real heading

It renders <h3> by default, so the card appears in the document outline under the section it sits in. Set headingLevel when the card is nested deeper — a card inside a subsection that keeps the default jumps a level.

The intent is decoration, the title is the message

The accent colour carries no semantics: a screen reader announces a warning card exactly like an info card. Put the severity in the words — "This action cannot be undone" — never in the colour alone. The icon is aria-hidden for the same reason.

A card is not a live region

It is static prose in the reading order and is not announced when it appears. For something that has to interrupt — a failed save, a validation error — Alert from @urbicon-ui/blocks is the component that carries the live region.

With href, the whole card is one link

Passing href swaps the <aside> for an <a> labelled by the title, so the body text is inside the link rather than beside it. Keep the body short in that mode, and keep the title meaningful on its own — it is the entire accessible name.

03 API Reference

Complete list of component properties and their configurations

12 props
Prop
Type
Default
Description

04 Types

Local type definitions used by this component.

3 types
Name
Kind
Category
Used by
Description

05 Installation

Import

import { InfoCard } from '@urbicon-ui/docs';