UNPKG

@telsystems/design

Version:
20 lines (19 loc) 611 B
import * as React from 'react'; import { TLabelPosition } from './TLabelPosition'; import { TOOLTIP_ALIGN, TOOLTIP_POSITION } from '../Tooltip'; export interface ILabel { children?: React.ReactNode | React.ReactNode[]; className?: string; position?: TLabelPosition; action?: () => void; style?: object; text?: string; selectedText?: string; htmlFor?: string; tooltipText?: string; showTooltipIcon?: boolean; tooltipPosition?: TOOLTIP_POSITION; tooltipAlign?: TOOLTIP_ALIGN; useLabelTag?: boolean; getTooltipIconRef?: (node: HTMLElement | null) => void; }