diff --git a/front/ui-docs/components/ui/card.md b/front/ui-docs/components/ui/card.md index 9052d6edf..5a54fd41f 100644 --- a/front/ui-docs/components/ui/card.md +++ b/front/ui-docs/components/ui/card.md @@ -67,22 +67,27 @@ TODO: Test if it works. Set up a mock router in vitest. Add a `:to` prop, either containing an external link (`"https://..."`) or a Vue Router destination: + + ```ts -:to="{name: 'library.albums.detail', params: {id: album.id}}" + ``` -
- -Got a question about Funkwhale? Get a quick answer! -
+ + + +
## Card as a Category header Category cards are basic cards that contain only a title. To create a category card, pass a `category` prop. + + ```vue-html{1} + ## Add an Image Pass an image source to the `image` prop or set `image.src` and `image.style`. - + ```vue-html{4,11-12} ``` -
- -
+ + -
-
+ style="--width:208px" + title="For music lovers" + :image="{ src:'https://images.unsplash.com/photo-1524650359799-842906ca1c06?ixlib=rb-1.2.1&dl=te-nguyen-Wt7XT1R6sjU-unsplash.jpg&w=640&q=80&fm=jpg&crop=entropy&cs=tinysrgb', + style:'withPadding' }" /> +
## Add an Alert