MCPcopy Create free account
hub / github.com/adobe/react-spectrum / useListFormatter

Function useListFormatter

packages/react-aria/src/i18n/useListFormatter.tsx:22–25  ·  view source on GitHub ↗
(options: Intl.ListFormatOptions = {})

Source from the content-addressed store, hash-verified

20 * @param options - Formatting options.
21 */
22export function useListFormatter(options: Intl.ListFormatOptions = {}): Intl.ListFormat {
23 let {locale} = useLocale();
24 return useMemo(() => new Intl.ListFormat(locale, options), [locale, options]);
25}

Callers 4

ComboBox.tsxFile · 0.90
Select.tsxFile · 0.90
FormattedStringListFunction · 0.90
FormattedStringListFunction · 0.90

Calls 1

useLocaleFunction · 0.90

Tested by

no test coverage detected