1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-02 23:19:57 +00:00
elk/composables/injections.ts

10 lines
263 B
TypeScript
Raw Normal View History

2023-01-03 11:58:08 +00:00
import { InjectionKeyDropdownContext, InjectionKeyFontSize } from '~/constants/symbols'
export function useFontSizeRef() {
return inject(InjectionKeyFontSize)!
}
2023-01-03 11:58:08 +00:00
export function useDropdownContext() {
return inject(InjectionKeyDropdownContext, undefined)
}