@gdwc/components
Version:
A library of generic web components that are accessible, framework agnostic, possible to style, and easy to use with data provided by Drupal
34 lines (30 loc) • 843 B
JavaScript
import { LitElement, html, css } from 'lit';
import normalize from '../styles/normalize.css.js';
import theme from '../styles/theme.css.js';
export class GdwcContainer extends LitElement {
static get styles() {
return [
normalize,
theme,
css`
:host {
display: block;
/* Uncomment lines below to support additional CSS variables.
Delete commented lines if variable is not supported. */
padding: var(--gdwc-padding, 0);
background-image: var(--gdwc-background-image);
border: var(--gdwc-border, none) ;
border-radius: var(--gdwc-border-radius);
box-shadow: var(--gdwc-shadow);
}
`,
];
}
render() {
return html`
<div class="gdwc-container">
<slot></slot>
</div>
`;
}
}