Core Utils are lightweight utility functions that power essential interactions within the UI library.
openModal
A Utility function used for opening modal components
Parameters:
value: string
– A unique identifier used to control modal visibility.Usage:
openDrawer
A Utility function that opens a drawer component.
Parameters:
value: string
– A unique identifier used to control drawer visibility.Usage:
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