UNPKG

@visa/nova-angular

Version:

Visa Product Design System Nova Angular library

34 lines (33 loc) 1.31 kB
/** * Copyright (c) 2025 Visa, Inc. * * 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"; /** * This directive sets the role of an element to "img" when the element is not an \<img\> tag. */ export declare class AvatarRoleImgDirective { /** * Provides custom role. * @default 'img' when **not** on an <code>&lt;img&gt;</code> element. * @builtin true */ get role(): string; set role(value: string); _role: string; get hostRole(): string; static ɵfac: i0.ɵɵFactoryDeclaration<AvatarRoleImgDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<AvatarRoleImgDirective, "[v-avatar]:not(img)", never, { "role": { "alias": "role"; "required": false; }; }, {}, never, never, true, never>; }