UNPKG

koval-ui

Version:

React components collection with minimalistic design. Supports theming, layout, and input validation.

21 lines (20 loc) 661 B
"use client"; import { jsx as n } from "react/jsx-runtime"; import { forwardRef as i, useMemo as c } from "react"; import f from "classnames"; import { useBrowserLocale as p } from "../../internal/locale/useBrowserLocale.js"; import N from "./Name.module.css.js"; const u = i( ({ className: a, locale: e, countryCode: o, ...m }, r) => { const t = p(), s = e || t, l = c( () => new Intl.DisplayNames(s, { type: "region" }).of(o), [o, s] ); return /* @__PURE__ */ n("span", { ...m, className: f(N.name, a), ref: r, children: l }); } ); u.displayName = "NameRegion"; export { u as NameRegion }; //# sourceMappingURL=NameRegion.js.map