UNPKG

fluent-svelte-updated

Version:

Forked from https://github.com/vegardlarsen/fluent-svelte. A faithful implementation of Microsoft's Fluent Design System in Svelte.

52 lines (51 loc) 1.98 kB
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> { new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & { $$bindings?: Bindings; } & Exports; (internal: unknown, props: Props & { $$events?: Events; $$slots?: Slots; }): Exports & { $set?: any; $on?: any; }; z_$$bindings?: Bindings; } type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends { default: any; } ? Props extends Record<string, never> ? any : { children?: any; } : {}); /** * Radio buttons, also called option buttons, let users select one option from a collection of two or more mutually exclusive, but related, options. The singular behavior of a RadioButtons group distinguishes it from check boxes, which support multi-selection and deselection, or clearing. [Docs](https://fluent-svelte.vercel.app/docs/components/radiobutton) * - Usage: * ```tsx * <script> * import { RadioButton } from "fluent-svelte"; * * let flavor = "chocolate"; * </script> * * <RadioButton bind:group={flavor} value="chocolate">Chocolate</RadioButton> * <RadioButton bind:group={flavor} value="vanilla">Vanilla</RadioButton> * <RadioButton bind:group={flavor} value="strawberry">Strawberry</RadioButton> * ``` */ declare const RadioButton: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{ [x: string]: any; group?: any; checked?: boolean; value?: any; disabled?: boolean; class?: string; inputElement?: HTMLInputElement; containerElement?: HTMLLabelElement; }, { default: {}; }>, { [evt: string]: CustomEvent<any>; }, { default: {}; }, {}, string>; type RadioButton = InstanceType<typeof RadioButton>; export default RadioButton;