Add custom information badge
useClickBadge structure
useClickBadge structureexport type BadgeSettings = {
title: string;
link?: string;
color?: string;
background: string;
};const ClickTopBar = ({ themeMode, onThemeSwitch }) => {
const {setLeftBadge} = useClickBadge();
setLeftBadge({
title: `📄 Go to CSPR.click docs`,
background: 'blue',
color:'white',
link: 'https://docs.cspr.click/'
});
}
Last updated

