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.
30 lines (29 loc) • 830 B
TypeScript
import { LitElement } from 'lit';
/**
* A container component for card media content such as images, GIFs, or videos.
* This component should be used within an igc-card element to display visual content.
*
* @element igc-card-media
*
* @slot - Renders the card media content (e.g., img, video elements).
*
* @example
* ```html
* <igc-card>
* <igc-card-media>
* <img src="image.jpg" alt="Card image" />
* </igc-card-media>
* </igc-card>
* ```
*/
export default class IgcCardMediaComponent extends LitElement {
static readonly tagName = "igc-card-media";
static styles: import("lit").CSSResult;
static register(): void;
protected render(): import("lit-html").TemplateResult<1>;
}
declare global {
interface HTMLElementTagNameMap {
'igc-card-media': IgcCardMediaComponent;
}
}