Custom Hooks
Lumino provides a set of internal React hooks to help you extend the functionality of your documentation site without writing complex state management.
Core Hooks
The core functionality of this module relies on the distributed nature of the Lumino backend. It is designed for high availability and low latency access.
useSearch
Provides access to the global search state and filtered results.

useNavigation
Allows you to programmatically navigate between articles and collections.

useTheme
Controls UI elements like sidebar visibility and contrast modes.

Implementation Example
The core functionality of this module relies on the distributed nature of the Lumino backend. It is designed for high availability and low latency access.
javascript

Coppied
import { useNavigation } from '@notate/core';
const MyButton = () => {
const { goToArticle } = useNavigation();
return (
<button onClick={() => goToArticle('auth')}>
Go to Auth
</button>
);
};



Context Requirement
- These hooks must be used within the NotateProvider hierarchy. They will throw an error if accessed from standalone components outside the main app context.