@sjsf-lab/shadcn-extras-theme
Version:
The shadcn-svelte-extras based theme for svelte-jsonschema-form
14 lines (13 loc) • 589 B
TypeScript
import type { Country, CountryCode } from 'svelte-tel-input/types';
interface Props {
/** List of countries */
countries: Country[];
disabled?: boolean;
selected?: CountryCode | null;
onselect?: (val: CountryCode | null) => void;
/** Default ordering is alphabetical by country name supply this function to customize the sorting behavior */
order?: (a: Country, b: Country) => number;
}
declare const CountrySelector: import("svelte").Component<Props, {}, "selected">;
type CountrySelector = ReturnType<typeof CountrySelector>;
export default CountrySelector;