flowbite-svelte icon indicating copy to clipboard operation
flowbite-svelte copied to clipboard

[Feature] Card component

Open shinokada opened this issue 3 years ago • 3 comments

Card

  • [x] Default card
  • [x] Card with button
  • [x] Card with link
  • [x] Card with image
  • [x] Horizontal card (need update)
  • [x] User profile card
  • [x] Card with form inputs
  • [x] E-commerce card
  • [x] Call to action card
  • [ ] Card with nav tabs
  • [ ] Card full width tabs
  • [x] Card with list
  • [x] Pricing card
  • [x] Testimonial card
  • [ ] Crypto card

shinokada avatar Aug 05 '22 13:08 shinokada

Horizontal card (need update)

What update is needed? I don't see the difference versus Flowbite.com

jjagielka avatar Aug 05 '22 14:08 jjagielka

In a small screen the horizontal card has different image size:

Flowbite: image

Flowbite-svelte: image

shinokada avatar Aug 05 '22 14:08 shinokada

Updates:

  • https://github.com/themesberg/flowbite-svelte/pull/204
  • https://github.com/themesberg/flowbite-svelte/pull/210

Thanks to @jjagielka .

shinokada avatar Aug 06 '22 09:08 shinokada

@shinokada Hi, is it possible to override the colors on a Card component? I don't see a way to pass that in right now. Thanks

dorisip avatar Oct 13 '22 19:10 dorisip

@dorisip Can you try class?

<Card class="your-color">
...

shinokada avatar Oct 13 '22 21:10 shinokada

$$restProps passing to underlying Frame was missed. PR created.

Card is based on the Frame component. You can use color property in the same manner as with Alert.

jjagielka avatar Oct 14 '22 02:10 jjagielka

@jjagielka We need put this info in the doc. What do you think_

shinokada avatar Oct 14 '22 02:10 shinokada

This is something extra beyond Flowbite.com. We profit from Frame inheritance.

I have added the Frame props at the Card docs. I think we need a proper docs page for the Frame component.

jjagielka avatar Oct 14 '22 02:10 jjagielka

We can add it under the UTILS section.

shinokada avatar Oct 14 '22 02:10 shinokada

Thanks. I'll wait for the PR to be merged.

dorisip avatar Oct 14 '22 13:10 dorisip

Merged.

shinokada avatar Oct 14 '22 20:10 shinokada