MCPcopy Create free account
hub / github.com/fontsource/fontsource / useIsFontLoaded

Function useIsFontLoaded

website/app/hooks/useIsFontLoaded.ts:160–166  ·  view source on GitHub ↗
(
	family: string,
	enabled = true,
	options?: ObserverOptions,
)

Source from the content-addressed store, hash-verified

158};
159
160export const useIsFontLoaded = (
161 family: string,
162 enabled = true,
163 options?: ObserverOptions,
164) => {
165 return useFontStatus(family, enabled, options) === 'loaded';
166};

Callers 2

Hits.tsxFile · 0.90
TextArea.tsxFile · 0.90

Calls 1

useFontStatusFunction · 0.85

Tested by

no test coverage detected