1 import classNames from "classnames";
2 import { Component } from "inferno";
11 export class Icon extends Component<IconProps, any> {
12 constructor(props: any, context: any) {
13 super(props, context);
19 class={classNames("icon", this.props.classes, {
20 "icon-inline": this.props.inline,
21 small: this.props.small,
24 <use xlinkHref={`#icon-${this.props.icon}`}></use>
26 <title>{this.props.icon}</title>
33 interface SpinnerProps {
37 export class Spinner extends Component<SpinnerProps, any> {
38 constructor(props: any, context: any) {
39 super(props, context);
46 classes={`spin ${this.props.large && "spinner-large"}`}