2018-05-22 19:44:40 +00:00
|
|
|
import { Component } from 'react';
|
|
|
|
|
|
|
|
export type Props = {
|
|
|
|
|
2020-05-18 11:54:55 +00:00
|
|
|
/**
|
|
|
|
* An SVG icon to be rendered as the content of the label.
|
|
|
|
*/
|
2022-09-08 09:52:36 +00:00
|
|
|
icon?: Function;
|
2020-05-18 11:54:55 +00:00
|
|
|
|
2018-05-22 19:44:40 +00:00
|
|
|
/**
|
2020-04-23 13:45:36 +00:00
|
|
|
* String or component that will be rendered as the label itself.
|
2018-05-22 19:44:40 +00:00
|
|
|
*/
|
2022-09-08 09:52:36 +00:00
|
|
|
text?: string;
|
2018-05-22 19:44:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2021-04-08 08:35:26 +00:00
|
|
|
* Abstract class for the {@code Label} component.
|
2018-05-22 19:44:40 +00:00
|
|
|
*/
|
2022-08-25 11:35:19 +00:00
|
|
|
export default class Label<P extends Props, S>
|
2018-09-11 10:16:01 +00:00
|
|
|
extends Component<P, S> {
|
2018-05-22 19:44:40 +00:00
|
|
|
}
|