Utilities

Core Utils

Core Utils are lightweight utility functions that power essential interactions within the UI library.

Logo

Functions

openModal

A Utility function used for opening modal components

Parameters:

  • value: string – A unique identifier used to control modal visibility.

Usage:

closeModal

A Utility function used for closing modal components

Usage:

demo.ts

openDrawer

A Utility function that opens a drawer component.

Parameters:

  • value: string – A unique identifier used to control drawer visibility.

Usage:

closeDrawer

A Utility function used for closing an open drawer.

Usage:

demo.ts

handleFileUpload

Handles file extraction from onFileUpload prop on FileUpload component.

Parameters:

  • callback: (file: File) => void – Function to execute with the selected file.

Usage:

demo.ts