solid-trigger
v1.0.1
Published
Solid Trigger Component
Downloads
4
Readme
solid-trigger
Solid Trigger Component
Install
Usage
Include the default styling and then:
import { render } from "solid-js/web";
import Trigger from "solid-trigger";
function HelloWorld() {
return <div>Hello World!</div>;
}
function Button() {
return <div>button</div>;
}
render(
() => (
<Trigger popup={<HelloWorld />}>
<Button />
</Trigger>
),
document.getElementById("app")
);
API
props
License
solid-trigger is released under the MIT license.