UNPKG

@carbon/react

Version:

React components for the Carbon Design System

37 lines (36 loc) 1.72 kB
/** * 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'; 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 = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'left-bottom' | 'left-top' | 'right-bottom' | 'right-top'; export type NewAlignment = 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-end' | 'left-start' | 'right-end' | 'right-start'; export type Alignment = DeprecatedAlignment | NewAlignment; export interface AILabelProps { AILabelContent?: React.ReactNode; aiText?: string; aiTextLabel?: string; textLabel?: string; align?: Alignment; autoAlign?: boolean; children?: React.ReactNode; className?: 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>>;