You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AbstractLabel.js 416B

1234567891011121314151617181920212223
  1. // @flow
  2. import { Component } from 'react';
  3. export type Props = {
  4. /**
  5. * An SVG icon to be rendered as the content of the label.
  6. */
  7. icon: Component<any>,
  8. /**
  9. * String or component that will be rendered as the label itself.
  10. */
  11. text: string
  12. };
  13. /**
  14. * Abstract class for the {@code Label} component.
  15. */
  16. export default class Label<P: Props, S: *>
  17. extends Component<P, S> {
  18. }