A content frame that looks like a card with a back and front side.
import { html } from 'lit-html';
import './demo-wc-card.js';
export const usage = () => {
return html`
<demo-wc-card></demo-wc-card>
`;
};
npm i demo-wc-card
import 'demo-wc-card/demo-wc-card.js';
<demo-wc-card></demo-wc-card>
You can provide multiple options to adjust the output like so.
You can give it a different header
by providing it as a string
export const header = () => {
return html`
<demo-wc-card .header=${'my new header'}></demo-wc-card>
`;
};
You wanna show the back side first? use the back-side
as an attribute.
export const backSide = () => {
return html`
<demo-wc-card back-side></demo-wc-card>
`;
};
See more variations here.
export default {
title: 'Demo Card/Main',
};