/** * SPDX-FileCopyrightText: (c) 2026 Liferay, Inc. https://liferay.com * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 */ import React from 'react'; export declare type LabelDisplayType = 'danger' | 'info' | 'secondary' | 'success' | 'unstyled' | 'warning'; export declare type ContentLabelDisplayType = 'content-0' | 'content-1' | 'content-2' | 'content-3' | 'content-4' | 'content-5' | 'content-6' | 'content-7' | 'content-8'; declare const ItemAfter: React.ForwardRefExoticComponent & React.RefAttributes>; declare const ItemBefore: React.ForwardRefExoticComponent & React.RefAttributes>; declare const ItemExpand: React.ForwardRefExoticComponent & React.RefAttributes>; interface IBaseProps extends React.BaseHTMLAttributes { /** * Flag to indicate if `label-dismissible` class should be applied. */ dismissible?: boolean; /** * Determines the style of the label. */ displayType: T; /** * Flag to indicate if the label should be of the `inverse` variant. */ inverse?: boolean; /** * Flag to indicate if the label should be of the `large` variant. * @deprecated Use `size="lg"` instead. */ large?: boolean; /** * Determines the size of the label. */ size?: 'lg' | 'sm'; } interface IProps extends IBaseProps { /** * HTML properties that are applied to the 'x' button. */ closeButtonProps?: React.ButtonHTMLAttributes & { ref?: (instance: HTMLButtonElement | null) => void; }; /** * Pros to add to the inner label item */ innerElementProps?: React.ComponentProps; /** * Path to the location of the spritemap resource used for Icon. */ spritemap?: string; /** * Flag to indicate if component should include the close button */ withClose?: boolean; } declare const Label: React.ForwardRefExoticComponent, "displayType"> & Partial, "displayType">> & React.RefAttributes> & { ItemAfter: React.ForwardRefExoticComponent & React.RefAttributes>; ItemBefore: React.ForwardRefExoticComponent & React.RefAttributes>; ItemExpand: React.ForwardRefExoticComponent & React.RefAttributes>; }; declare const ContentLabel: React.ForwardRefExoticComponent, "inverse"> & React.RefAttributes> & { ItemAfter: React.ForwardRefExoticComponent & React.RefAttributes>; ItemBefore: React.ForwardRefExoticComponent & React.RefAttributes>; ItemExpand: React.ForwardRefExoticComponent & React.RefAttributes>; }; export { ContentLabel, ItemAfter, ItemBefore, ItemExpand }; export default Label;