wj-elements
Version:
WebJET Elements is a modern set of user interface tools harnessing the power of web components designed to simplify web application development.
30 lines (29 loc) • 1.22 kB
TypeScript
import { default as WJElement } from '../wje-element/element.js';
/**
* @summary This class represents Card element, extending the WJElement class.
* @documentation https://elements.webjet.sk/components/card
* @status stable
* @augments WJElement
* @slot - The card main content.
* @cssproperty [--wje-card-margin-top=0] - Margin top of the component;
* @cssproperty [--wje-card-margin-bottom=1rem] - Margin bottom of the component;
* @cssproperty [--wje-card-margin-inline=0] - Margin inline of the component;
* @cssproperty [--wje-card-border-color=transparent] - Border color of the component;
* @cssproperty [--wje-card-background=#fff] - Background of the component;
*/
export default class Card extends WJElement {
/**
* Get CSS stylesheet for the Card element.
* @static
* @returns {object} styles - The CSS styles
*/
static get cssStyleSheet(): object;
/**
* Draw method for the Card element.
* @param {object} context The context object
* @param {object} store The store object
* @param {object} params The parameters
* @returns {object} fragment - The document fragment
*/
draw(context: object, store: object, params: object): object;
}