• Button which can render an icon.

    Parameters

    • props: Object

    Returns null | ReactElement<any, string | JSXElementConstructor<any>>

    Example

    // to render a button element
    <Button type="button" icon={IconName.X} />
    // to render an anchor element
    <Button path="/home" icon={IconName.X} />

Generated using TypeDoc