mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
ion-card
Cards are a standard piece of UI that serves as an entry point to more detailed
information. A card can be a single component, but is often made up of some
header, title, subtitle, and content. ion-card is broken up into several
sub-components to reflect this. Please see ion-card-content,
ion-card-header, ion-card-title, ion-card-subtitle.
Properties
| Property | Attribute | Description | Type |
|---|---|---|---|
color |
color |
The color to use from your application's color palette. Default options are: "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark". For more information on colors, see theming. |
Color |
mode |
mode |
The mode determines which platform styles to use. Possible values are: "ios" or "md". |
Mode |
CSS Custom Properties
| Name | Description |
|---|---|
--background |
Background of the card |
--color |
Color of the card |
Built with StencilJS