Skip to main content
Brand and assets
Build
Monitor and contribute
/
Component library
  • All components
  • Buttons & actions
  • Forms & inputs
  • Layout & containers
  • Overlays
  • Feedback & status
  • Data display
    • Accordion
    • Accordion
    • Avatar
    • Avatar
    • Blobby
    • Card
    • Card
    • Collapsible
    • Divider
    • Emoji
    • Emoji
    • Gradient
    • Gradient
    • Icon
    • Image
    • ListItem
    • ListItem
    • ResponsiveImage
    • SemanticList
    • Tag
    • Timeline
  • Typography
  • Accessibility
  • Contrib
  • Deprecated
  • Data display
  • Card

Card

A surface that groups related content into one block. Use to separate one item from the rest of the page.

Health
Component health
Source
View on Github
Design
View Figma
Storybook
View in Storybook
Accessibility

compliant

Platform
Mobile
📱 Mobile-only
This component is only for mobile. To see how it looks like you can check the mobile storybook with:
yarn workspace alan-mobile dev:install-client -p ios
yarn workspace alan-mobile dev:storybook
  • Overview
  • Props
  • Figma
info

Mobile components cannot be previewed in the browser. Use Storybook mobile or run the app locally to test.

Playground​

Loading...

Card props

NameTypeDefault ValueDescriptionUsage count
backgroundColorColorTokensundefined$white
disabledbooleanundefined
edgeToEdgebooleanundefinedfalse
noHeightFillbooleanundefined
onPress
2 possibilities((event: GestureResponderEvent) => void)undefined
paddingHorizontalnumberundefined16
paddingVerticalnumberundefined16
selectedbooleanundefined
selectedColorColorTokensundefined
shadowCardShadowundefinedsm
sizeCardSizeundefinedlgBorder radius size of the card
style
6 possibilitiesundefinednullfalse""ViewStyleRecursiveArray<Falsy | ViewStyle>
testIDstringundefined
useHapticsbooleanundefined
Edit this page
Previous
Blobby
Next
Card
  • Playground