Standardize event names to be consistent with @headlessui-react
Was previously using Vue names since Vue was the primary reference while porting, but as the public API is closer to the React one it makes sense to use that. Fixes #8
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<Switch
|
||||
as="button"
|
||||
checked={state}
|
||||
on:updateValue={(event) => (state = event.detail)}
|
||||
on:change={(event) => (state = event.detail)}
|
||||
class={({ checked }) =>
|
||||
classNames(
|
||||
"relative inline-flex flex-shrink-0 h-6 border-2 border-transparent rounded-full cursor-pointer w-11 focus:outline-none focus:shadow-outline transition-colors ease-in-out duration-200",
|
||||
|
||||
Reference in New Issue
Block a user