MCPcopy Create free account
hub / github.com/TanStack/hotkeys / useStyles

Function useStyles

packages/hotkeys-devtools/src/styles/use-styles.ts:680–687  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

678}
679
680export function useStyles() {
681 const { theme } = useTheme()
682 const [styles, setStyles] = createSignal(stylesFactory(theme()))
683 createEffect(() => {
684 setStyles(stylesFactory(theme()))
685 })
686 return styles
687}

Callers 6

SequenceListRowFunction · 0.90
HotkeyListFunction · 0.90
DetailsPanelFunction · 0.90
ActionButtonsFunction · 0.90
HeldKeysBarFunction · 0.90
ShellFunction · 0.90

Calls 1

stylesFactoryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…