File

src/skeleton/skeleton-placeholder.component.ts

Description

Get started with importing the module:

Example :
import { SkeletonModule } from 'carbon-components-angular';

See demo

Metadata

Index

Inputs

Inputs

ai
Type : boolean
Default value : false

When true, applies the AI skeleton gradient treatment

import { Component, Input } from "@angular/core";

/**
 * Get started with importing the module:
 *
 * ```typescript
 * import { SkeletonModule } from 'carbon-components-angular';
 * ```
 *
 * [See demo](../../?path=/story/components-skeleton--basic)
 */
@Component({
	selector: "cds-skeleton-placeholder, ibm-skeleton-placeholder",
	template: `
		<div
			class="cds--skeleton__placeholder"
			[class.cds--skeleton__placeholder--ai]="ai">
		</div>`
})
export class SkeletonPlaceholder {
	/**
	 * When `true`, applies the AI skeleton gradient treatment
	 */
	@Input() ai = false;
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""