IUseCodeReturn
interface
Composable Returns
Public surface of the useCode composable. Lazily instantiates a shiki highlighter on first call and reuses it across every OrigamCode instance for the lifetime of the page.
TypeScript
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Consuming useCode in a component