Add button

  • Parameters

    • props: IProps

      Props

      Props list:

      • disabled (boolean) Set disabled state
      • primary (boolean) Set Button type
      • light (boolean) Set Button text to light
      • dark (boolean) Set Button text to dark
      • fullWidth (boolean) Set Button width to 100%
      • needMargin (boolean) Set Button left margin to 5px
      • loading (boolean) Set loading state
      • children (React child) Button children
      • onAdd (Function) Button click

    Returns ReactNode | Promise<ReactNode>

    AddButton