@carbon/react
Version:
React components for the Carbon Design System
35 lines (34 loc) • 1.55 kB
TypeScript
/**
* Copyright IBM Corp. 2016, 2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { ToggletipBaseProps } from '../Toggletip';
import type { DeprecatedPopoverAlignment, NewPopoverAlignment, PopoverAlignment } from '../Popover';
export type AILabelContentProps = React.HTMLAttributes<HTMLSpanElement>;
export declare const AILabelContent: React.ForwardRefExoticComponent<AILabelContentProps & React.RefAttributes<unknown>>;
export type AILabelActionsProps = React.HTMLAttributes<HTMLSpanElement>;
export declare const AILabelActions: React.ForwardRefExoticComponent<AILabelActionsProps & React.RefAttributes<unknown>>;
/**
* Deprecated popover alignment values.
* @deprecated Use NewPopoverAlignment instead.
*/
export type DeprecatedAlignment = DeprecatedPopoverAlignment;
export type NewAlignment = NewPopoverAlignment;
export type Alignment = PopoverAlignment;
export interface AILabelProps extends ToggletipBaseProps {
AILabelContent?: React.ReactNode;
aiText?: string;
aiTextLabel?: string;
textLabel?: string;
kind?: 'default' | 'inline';
onRevertClick?: (evt: React.MouseEvent<HTMLButtonElement>) => void;
revertActive?: boolean;
revertLabel?: string;
size?: 'mini' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
'aria-label'?: string;
slugLabel?: string;
}
export declare const AILabel: React.ForwardRefExoticComponent<AILabelProps & React.RefAttributes<HTMLDivElement>>;