UNPKG

@carbon/react

Version:

React components for the Carbon Design System

30 lines (29 loc) 859 B
/** * Copyright IBM Corp. 2016, 2023 * * 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 declare const IconIndicatorKinds: string[]; export type IconIndicatorKind = (typeof IconIndicatorKinds)[number]; export interface IconIndicatorProps { /** * Specify an optional className to add. */ className?: string; /** * Specify the kind of icon to be used */ kind: IconIndicatorKind; /** * Label next to the icon */ label: string; /** * Specify the size of the Icon Indicator. Defaults to 16. */ size?: 16 | 20; } export declare const IconIndicator: React.ForwardRefExoticComponent<IconIndicatorProps & React.RefAttributes<HTMLDivElement>>; export default IconIndicator;