Skip to content

Card(Props): support for different levels of elevation (shadow) #2687

@reinaldosimoes

Description

@reinaldosimoes

Is your feature request related to a problem? Please Describe.
The Card component works fine for most cases, but it would be cool to have a little bit more customization when it comes to the levels of elevation, either for UX reasons, or just to follow an already set design. The values for shadow would take into consideration Google's Material Design documentation and Apple's Human Interface Guidelines.

Describe the solution you'd like
Introducing a shadow prop with options for how elevated the Card component should be, with "xs" being the current shadow, and the default if shadow is not defined.

shadow: = "xs" | "sm" | "md" | "lg"

Usage

<Card shadow="sm">
  <Card.Image source={require('../image.png')} />
  <Text>Hello World!</Text>
</Card>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions