carbon-components-angular
Version:
Next generation components
46 lines (42 loc) • 1.49 kB
TypeScript
/**
*
* carbon-angular v0.0.0 | icon-tab.component.d.ts
*
* Copyright 2014, 2026 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 { Tab } from "./tab.component";
import * as i0 from "@angular/core";
/**
* Icon-only approach for `cds-tab` variant: `[icon]` template plus `label` for tooltip.
*
* ```html
* <ng-template #i><svg cdsIcon="activity" size="16"></svg></ng-template>
* <cds-tabs>
* <cds-icon-tab label="Activity" [icon]="i">Panel</cds-icon-tab>
* </cds-tabs>
* ```
*/
export declare class IconTab extends Tab {
/**
* Accessible label and tooltip text for the icon tab.
*/
set label(value: string);
get label(): string;
/**
* Icon tabs are only for icons, so iconOnly by default
*/
iconOnly: boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<IconTab, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<IconTab, "cds-icon-tab, ibm-icon-tab", never, { "label": "label"; }, {}, never, ["*"], false>;
}