UI kit reference
code/editor/HighlightWorkers
import { … } from 'zidane-ui/code/editor'ui/src/code/editor/HighlightWorkers.tsx
Components#
HighlightWorkersComponent#
Gives the views below a shared pool of highlight workers themed like the editor. Without a
createWorker it renders the children as they are and pierre highlights on the main thread.
function HighlightWorkers(props: HighlightWorkersProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | HighlightWorkersProps |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| children | ReactNode | The views that highlight through the pool. |
| createWorker | (() => Worker) | null | Creates one highlight worker; |
Interfaces#
HighlightWorkersPropsInterface#
Props of HighlightWorkers.
interface HighlightWorkersPropsProperties
| Name | Type | Description |
|---|---|---|
| children | ReactNode | The views that highlight through the pool. |
| createWorker | (() => Worker) | null | Creates one highlight worker; |