Skip to content

[Feat] Custom control over cards #181

@philipbrembeck

Description

@philipbrembeck

Is your feature request related to a problem? Please describe.
Currently, the MW-Card offers me the option to input Data via Props (e.g. Title, Subtitle, etc.).

Describe the solution you'd like
I would like to have more control over the data inside the card and would therefore prefer to input this data as children.
Something like this would be nice:

<mw-card elevated>
  <mw-card-image
    src="https://placedog.net/250/150?id=3"
    alt="card image"
  ></mw-card-image>
  <mw-card-title>This is the cards heading</mw-card-title>
  <mw-card-subtitle>This is the cards subtitle</mw-card-subtitle>
  <mw-card-content>This is the cards content</mw-card-content>
</mw-card>

Metadata

Metadata

Assignees

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