Skip to content

Latest commit

 

History

History

core

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@electron-uikit/core

Electron UI kit core. Exposes the UI Kit APIs for communicating between main and renderer processes.

Usage

Install

npm i @electron-uikit/core

Get Started

You can expose it in the specified preload script:

import { exposeUIKit } from '@electron-uikit/core/preload'

exposeUIKit()

Or, you can expose it globally in the main process for all renderer processes:

import { useUIKit } from '@electron-uikit/core/main'

useUIKit()

Note

If you are using @electron-toolkit/preload to expose Electron APIs, there is no need to use this module, because core is also an export of it.