Follow the tutorials here to use the HTMLPLUS
library on React-based
projects.
Select your desired component from below and see the available properties, slots, events, styles and methods.
Below is a collection of simple to complex examples.
import React from "react";
import { Portal } from "@htmlplus/react";
const App = () => {
return <>
<div id="target"></div>
<div id="source">
<Portal target="#target">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.
</p>
</Portal>
</div>
</>;
};
export default App;
#target { color: blue }
#source { color: red }