/* * Copyright (c) 2025, Salesforce, Inc. * All rights reserved. * For full license text, see the LICENSE.txt file */ /** * The `lightning/card` is used to apply a stylized container around a grouping of information. * @see {@link https://developer.salesforce.com/docs/component-library/bundle/lightning-card/documentation |Lightning Card Documentation} */ declare module "lightning/card" { import { LightningElement } from "lwc"; /** * Used to apply a stylized container around a grouping of information. */ export default class LightningCard extends LightningElement { /** The title can include text, and is displayed in the header. To include additional markup or another component, use the title slot. */ title: string; /** * The Lightning Design System name of the icon. * Specify the name in the format 'utility:down' where 'utility' is the category, * and 'down' is the specific icon to be displayed. * The icon is displayed in the header before the title. */ iconName: string; /** * The variant changes the appearance of the card. * Accepted variants include base or narrow. * This value defaults to base. */ variant: string; /** * The headingLevel changes the 'aria-level' attribute value of *

tag in the markup for the card's title element. It can take * values of (1, 2, 3, 4, 5, 6) */ headingLevel: string | number; /** Assistive label for the card header. Only shown if `hideHeader` attribute is set to `true`. */ label: string | null; /** * Hides the header chunk of the card when set to `true`. * Requires you to set the `label` attribute to supplement a non-rendered header. If `label` isn't set, you get a `console.warn` error. */ hideHeader: boolean; } }