Function Score

  • A component to display a numerical score. It supports custom formatting and an optional count-up animation.

    Parameters

    • props: IScoreProps

      The props for the component. See IScoreProps.

    • Optional context: any

    Returns null | ReactElement<any, any>

    A React element that displays the formatted score.

    Example

    <Score value={12345} format="Points: {0}" useAnimation />
    

Generated using TypeDoc