Skip to main content

Introduction

What you'll learn
  • How to install and use @js-smart/react-kit in a React + MUI project
  • Where to find component, utility, and constants documentation
Prerequisites
  • A React project (Vite, Next.js, or similar)
  • React 19.x
  • Familiarity with MUI components

React Kit (@js-smart/react-kit) is a comprehensive collection of reusable React components and utilities built with MUI (Material UI) and TanStack Router.

The library provides UI components (buttons, dialogs, snack bars, links, progress, tables, etc.) and utility functions for dates, strings, HTTP clients, state management, and other common tasks. Use React Kit to build React applications with a flexible, type-safe, and well-documented set of building blocks.

Technologies

  • React 19
  • MUI (Material UI) for components and theming
  • TanStack Router for navigation link components

To install the library, see Installation.

Available Components and Utilities

Components

ComponentDescription
Buttons
CancelButtonCancel action button
DeleteButtonDelete action button
EditIconButtonEdit action icon button
ExcelButtonExcel export button
GoBackButtonNavigate back button
HistoryButtonHistory / list view button
LoadingSuccessButtonButton with loading and success state
ManageButtonManage action button
SuccessButtonPrimary success / submit button
Other
CenteredCircularProgressCentered loading spinner
ConfirmationDialogConfirm/cancel dialog
DismissibleAlertDismissible alert message
NextLinkLink with href prop using TanStack Router
RouterLinkTyped TanStack Router link component
OpenInNewIconLinkLink that opens in a new tab
ReactIfConditional rendering wrapper
AppSnackBarApplication snack bar notifications
QuerySnackBarQuery-based snack bar notifications
ToastGlobal toast notifications
TablePaginationActionsTable pagination controls
TabPanelAccessible tab panel (with a11yProps)

Utilities

UtilityDescription
BooleanUtilsBoolean helpers
CssUtilsCSS class and style helpers
DateUtilDate formatting and parsing
NumberUtilsNumber formatting and parsing
ProgressStateUtilsProgress/loading state helpers
StringUtilsString helpers (e.g. blank/empty check)
UrlUtilsURL building and parsing

Types and constants

NameDescription
ProgressStateType for loading/success/error states
App ConstantsSystem config, locale, and date format defaults

Next steps

  • Browse the Docs sidebar for component and utility documentation.
  • Check the GitHub repository for source code, issues, and contributions.