Card
A surface that groups related content into one block. Use to separate one item from the rest of the page.
Health
Source
Design
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
| Name | Type | Default Value | Description | Usage count |
|---|---|---|---|---|
| backgroundColor | ColorTokensundefined | $white | ||
| disabled | booleanundefined | |||
| edgeToEdge | booleanundefined | false | ||
| noHeightFill | booleanundefined | |||
| onPress | 2 possibilities((event: GestureResponderEvent) => void)undefined | |||
| paddingHorizontal | numberundefined | 16 | ||
| paddingVertical | numberundefined | 16 | ||
| selected | booleanundefined | |||
| selectedColor | ColorTokensundefined | |||
| shadow | CardShadowundefined | sm | ||
| size | CardSizeundefined | lg | Border radius size of the card | |
| style | 6 possibilitiesundefinednullfalse""ViewStyleRecursiveArray<Falsy | ViewStyle> | |||
| testID | stringundefined | |||
| useHaptics | booleanundefined |