Open tarekoraby opened 1 year ago
Yep, we had to create our own: a collapsible card-element by extending AccordionPanel
, and also a pure Lit card for "always on" summary display.
Source: https://github.com/conversionxl/aybolit/blob/master/packages/cxl-ui/src/components/cxl-accordion-card.js Demo: https://conversionxl.github.io/aybolit/?path=/story/cxl-ui-cxl-vaadin-accordion--cxl-vaadin-accordion-theme-archive
Source: https://github.com/conversionxl/aybolit/blob/master/packages/cxl-ui/src/components/cxl-card.js Demo: https://conversionxl.github.io/aybolit/?path=/story/cxl-ui-cxl-tabs-slider--cxl-tabs-slider (in a slider built on Tabs)
Related: #224 which is supposed to be used as a primitive for creating a card component, among others.
Simple (can be released under feature flag):
Complex (further iterations under feature flag):
Some inspiration:
Describe your motivation
There is no easy way to create a card component similar to other UI libraries (e.g., MUI card).
Describe the solution you'd like
Add a generic card component that contains content and actions about a single subject.