UNPKG

igniteui-webcomponents

Version:

Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.

33 lines 1.1 kB
import { html, LitElement } from 'lit'; import { addThemingController } from '../../theming/theming-controller.js'; import { registerComponent } from '../common/definitions/register.js'; import { styles } from './themes/card.header.base.css.js'; import { all } from './themes/header.js'; import { styles as shared } from './themes/shared/header/card.header.common.css.js'; class IgcCardHeaderComponent extends LitElement { static register() { registerComponent(IgcCardHeaderComponent); } constructor() { super(); addThemingController(this, all); } render() { return html ` <section> <slot name="thumbnail"></slot> </section> <section> <header part="header"> <slot part="title" name="title"></slot> <slot part="subtitle" name="subtitle"></slot> </header> <slot></slot> </section> `; } } IgcCardHeaderComponent.tagName = 'igc-card-header'; IgcCardHeaderComponent.styles = [styles, shared]; export default IgcCardHeaderComponent; //# sourceMappingURL=card.header.js.map