Card

Cards are elevated containers of content, and are used in a variety of contexts. Card shares many of the utility props of <Box/>.

Simple Card
Card with no inset
Title
Card with Title
Title
Card with Title and Action

Margin and Padding

This components mimics the Box component from our web design system for margin and padding. Margin and padding can be controlled in any direction, using shorthand utility props like padding, for padding in all directions, paddingX for horizontal padding, or paddingLeft for padding left. Margin follows the same rules.

Hello!

The valid tokens for these props come from 'spacing'.

TokenValuex8 multiplier
"none"00x
"xsmall"40.5x
"small"81x
"medium"121.5x
"large"162x
"xlarge"243x
"xxlarge"324x
"xxxlarge"405x
"6x"486x
"7x"567x
"8x"648x
"9x"729x
"10x"8010x

All Props

children
node
required
margin
custom
marginBottom
custom
marginLeft
custom
marginRight
custom
marginTop
custom
marginX
custom
marginY
custom
padding
custom
"large"
paddingBottom
custom
paddingLeft
custom
paddingRight
custom
paddingTop
custom
paddingX
custom
paddingY
custom
onButtonPress
func
rounding
enum
"medium"
style
object │ undefined
title
string
innerStyle
object │ undefined