No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

Card

A card group information into a container to let users browse a group of related items and actions.

usage
import { Card, Heading, Header, Content } from "@sharegate/orbit-ui";
sources
Github

Guidelines

When to use

  • To restrain elements to a non-interactive container. Child elements can be interacted with.

Card vs Tile

  • If you need an interactive or navigable container, use a tile component.

Usage

Default

A card must have an heading and a content.

NASA Headquarters

NASA Headquarters, officially known as Mary W. Jackson NASA Headquarters or NASA HQ and formerly named Two Independence Square, is a low-rise office building in the two-building Independence Square complex at 300 E Street SW in Washington, D.C.

Editable example

Outline

A card can use a different style.

NASA Headquarters

NASA Headquarters, officially known as Mary W. Jackson NASA Headquarters or NASA HQ and formerly named Two Independence Square, is a low-rise office building in the two-building Independence Square complex at 300 E Street SW in Washington, D.C.

Editable example

Image

A card can have an image:

Planet over another one
NASA Headquarters

NASA Headquarters, officially known as Mary W. Jackson NASA Headquarters or NASA HQ and formerly named Two Independence Square, is a low-rise office building in the two-building Independence Square complex at 300 E Street SW in Washington, D.C.

Editable example

Or an illustration:

Planet over another one
NASA Headquarters

NASA Headquarters, officially known as Mary W. Jackson NASA Headquarters or NASA HQ and formerly named Two Independence Square, is a low-rise office building in the two-building Independence Square complex at 300 E Street SW in Washington, D.C.

Editable example

A card can have an header.

NASA Headquarters
No unexpected visitors allowed.

NASA Headquarters, officially known as Mary W. Jackson NASA Headquarters or NASA HQ and formerly named Two Independence Square, is a low-rise office building in the two-building Independence Square complex at 300 E Street SW in Washington, D.C.

Editable example

Buttons

A card can have a single button:

NASA Headquarters
No unexpected visitors allowed.

NASA Headquarters, officially known as Mary W. Jackson NASA Headquarters or NASA HQ and formerly named Two Independence Square, is a low-rise office building in the two-building Independence Square complex at 300 E Street SW in Washington, D.C.

Editable example

Or a group of button:

NASA Headquarters

300 E. Street SW, Suite 5R30
Washington, DC 20546
(202) 358-0001 (Office)
(202) 358-4338 (Fax)

Any trespassers are going to be sent in space.

Editable example

Orientation

A card can render horizontally.

Planet over another one
NASA

300 E. Street SW, Suite 5R30
Washington, DC 20546
(202) 358-0001 (Office)
(202) 358-4338 (Fax)

Please note that we are moving from December 12th to December 23rd.

Editable example

Size

A card can vary in size.

NASA Headquarters
300 E. Street SW, Suite 5R30
Washington, DC 20546
(202) 358-0001 (Office)
(202) 358-4338 (Fax)
NASA Headquarters
300 E. Street SW, Suite 5R30
Washington, DC 20546
(202) 358-0001 (Office)
(202) 358-4338 (Fax)
NASA Headquarters
300 E. Street SW, Suite 5R30
Washington, DC 20546
(202) 358-0001 (Office)
(202) 358-4338 (Fax)
NASA Headquarters
300 E. Street SW, Suite 5R30
Washington, DC 20546
(202) 358-0001 (Office)
(202) 358-4338 (Fax)
NASA Headquarters
300 E. Street SW, Suite 5R30
Washington, DC 20546
(202) 358-0001 (Office)
(202) 358-4338 (Fax)
Editable example

Fluid

A card can take the width of its container.

Planet over another one
NASA

300 E. Street SW, Suite 5R30
Washington, DC 20546
(202) 358-0001 (Office)
(202) 358-4338 (Fax)

Please note that we are moving from December 12th to December 23rd.

Editable example

Tabs

A card can render any components like tabs.

NASA

The National Aeronautics and Space Administration is an independent agency of the U.S. federal government responsible for the civilian space program, as well as aeronautics and space research.

We reach for new heights and reveal the unknown for the benefit of humankind
Editable example

API

Card

usage
import { Card } from "@sharegate/orbit-ui";
slots
"image", "illustration", "heading", "header", "content", "button", "button-group"
NameDescriptionDefault
children*
React children.
string | number | false | true | ReactElement<any, string | JSXElementConstructor<any>> | ReactFragment | ReactPortal
-
fluid
Whether or not the card take up the width of its container.
false | true | ResponsiveValue<boolean>
-
orientation
The orientation of the card.
"horizontal" | "vertical" | ResponsiveValue<"horizontal" | "vertical">
vertical
size
A card can vary in size.
"xs" | "sm" | "md" | "lg" | "xl" | ResponsiveValue<"xs" | "sm" | "md" | "lg" | "xl">
-
slot
Slot to render into.
string
-
variant
The style to use.
"outline""elevated"
"elevated"

Heading

usage
import { Heading } from "@sharegate/orbit-ui";
NameDescriptionDefault
size
An heading can vary in size.
"xs" | "sm" | "md" | "lg" | "xl" | "2xs" | ResponsiveValue<"xs" | "sm" | "md" | "lg" | "xl" | "2xs">
-
slot
Slot to render into.
string
-

Header

usage
import { Header } from "@sharegate/orbit-ui";
NameDescriptionDefault
children*
React children.
string | number | false | true | ReactElement<any, string | JSXElementConstructor<any>> | ReactFragment | ReactPortal
-
slot
Slot to render into.
string
-

Content

usage
import { Content } from "@sharegate/orbit-ui";
NameDescriptionDefault
children*
React children.
string | number | false | true | ReactElement<any, string | JSXElementConstructor<any>> | ReactFragment | ReactPortal
-
slot
Slot to render into.
string
-