From d4d445c8c09a80e2425573c3b6baa810d4bee548 Mon Sep 17 00:00:00 2001 From: Ryan Gossiaux Date: Sat, 10 Jun 2023 18:38:20 -0700 Subject: [PATCH] Remove references to custom events from latest/ docs --- src/routes/docs/latest/listbox.svx | 5 ----- src/routes/docs/latest/radio-group.svx | 6 ------ src/routes/docs/latest/switch.svx | 6 ------ 3 files changed, 17 deletions(-) diff --git a/src/routes/docs/latest/listbox.svx b/src/routes/docs/latest/listbox.svx index 82230fe..d286c59 100644 --- a/src/routes/docs/latest/listbox.svx +++ b/src/routes/docs/latest/listbox.svx @@ -492,11 +492,6 @@ The main listbox component. | `disabled` | `boolean` | Whether or not the listbox is disabled | | `open` | `boolean` | Whether or not the listbox is open | -This component also dispatches a custom event, which is listened to using the Svelte `on:` directive: - -| Event name | Type of event `.detail` | Description | -| ---------- | ----------------------- | ------------------------------------------------------------------------------------------------------------- | -| `change` | `T` | Dispatched when a `ListboxOption` is selected; the event `detail` contains the `value` of the selected option | ### ListboxButton diff --git a/src/routes/docs/latest/radio-group.svx b/src/routes/docs/latest/radio-group.svx index b6aede6..c8d5ef1 100644 --- a/src/routes/docs/latest/radio-group.svx +++ b/src/routes/docs/latest/radio-group.svx @@ -185,12 +185,6 @@ The main Radio Group component. | `disabled` | `false` | `boolean` | Whether the `RadioGroup` and all of its `RadioGroupOption`s are disabled | | `value` | -- | `T` \| `undefined` | The currently selected value in the `RadioGroup` | -This component also dispatches a custom event, which is listened to using the Svelte `on:` directive: - -| Event name | Type of event `.detail` | Description | -| ---------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `change` | `T` | Dispatched when a `RadioGroupOption` is selected; the event `detail` contains the `value` of the selected option | - ### RadioGroupOption The wrapper component for each selectable option. diff --git a/src/routes/docs/latest/switch.svx b/src/routes/docs/latest/switch.svx index 7ec66b9..adb01da 100644 --- a/src/routes/docs/latest/switch.svx +++ b/src/routes/docs/latest/switch.svx @@ -281,12 +281,6 @@ The main switch component. | --------- | --------- | ----------------------------- | | `checked` | `boolean` | Whether the switch is checked | -This component also dispatches a custom event, which is listened to using the Svelte `on:` directive: - -| Event name | Type of event `.detail` | Description | -| ---------- | ----------------------- | ---------------------------------------------------------------------------------------------- | -| `change` | `T` | Dispatched when a `Switch` is toggled; the event `detail` contains the new value of the switch | - ### SwitchLabel A label that can be used for more control over the text your switch will announce to screenreaders. Renders an element that is linked to the `Switch` via the `aria-labelledby` attribute and an autogenerated id.