Card is a Column with a surface background, a neutral-medium border and an l radius. Give it onPress and it becomes a button that dims slightly while pressed. It takes every Flex prop, so padding, gap, size and the defaults themselves can all be changed. See the web Card page.
onPress makes the card pressable and gives it the button role. onClick works too, as on the web.
selected swaps the border to brand-medium and the background to brand-alpha-weak, for the chosen item in a list. It is reported to screen readers on a pressable card.
- Pressed, not hover. A pressable card dims to 80% opacity while pressed, in place of the web's hover effect.
- onPress or onClick. Both work. onPress wins when both are set. There is no href.
- Clipping. radius does not clip children such as an image. Pass overflow="hidden" when it should.
Card takes every Flex prop, including the spacing, size, surface and breakpoint props, and every React Native View prop.