@swc-react/switch
Version:
React and Next.js wrapper of the @spectrum-web-components/switch component
17 lines (16 loc) • 491 B
JavaScript
;
import * as React from "react";
import { createComponent } from "@lit/react";
import { Switch as SpSwitch } from "@spectrum-web-components/switch";
import "@spectrum-web-components/switch/sp-switch.js";
export const Switch = createComponent({
displayName: "Switch",
elementClass: SpSwitch,
react: React,
tagName: "sp-switch",
events: {
change: "change"
// Announces a change in the `checked` property of a Switch
}
});
//# sourceMappingURL=index.dev.js.map