carbon-components-angular
Version:
Next generation components
49 lines (45 loc) • 1.6 kB
TypeScript
/**
*
* carbon-angular v0.0.0 | tag.component.d.ts
*
* Copyright 2014, 2024 IBM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import * as i0 from "@angular/core";
/**
* Supported tag types for carbon v10
*/
export declare type TagType = "red" | "magenta" | "purple" | "blue" | "cyan" | "teal" | "green" | "gray" | "cool-gray" | "warm-gray" | "high-contrast" | "outline";
/**
* Component that represents a tag for labelling/categorizing using keywords. Get started with importing the module:
*
* ```typescript
* import { TagModule } from 'carbon-components-angular';
* ```
*
* [See demo](../../?path=/story/components-tag--basic)
*/
export declare class Tag {
/**
* Type of the tag determines the styling
*/
type: TagType;
/**
* Tag render size
*/
size: "sm" | "md";
class: string;
get attrClass(): string;
static ɵfac: i0.ɵɵFactoryDeclaration<Tag, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<Tag, "cds-tag, ibm-tag", never, { "type": "type"; "size": "size"; "class": "class"; }, {}, never, ["*"], false>;
}