Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] Custom control over cards #181

Open
philipbrembeck opened this issue Jun 29, 2023 · 1 comment
Open

[Feat] Custom control over cards #181

philipbrembeck opened this issue Jun 29, 2023 · 1 comment
Assignees

Comments

@philipbrembeck
Copy link

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>
@Fuasmattn
Copy link
Contributor

Not sure if it's the correct card component you are referring to. The MwCard component is structured similar to what you describe, see https://maibornwolff.github.io/mwui/?path=/docs/components-card--card-full

The linked example shows a card with all options used, they can be included selectively of course to fulfil most needs. Would you still miss any option?

@Fuasmattn Fuasmattn self-assigned this Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants