1.0.5 • Published 10 months ago
@danidoble/webserial-views v1.0.5
Webserial Views Plugin
npm install @danidoble/webserial-viewsThis will create a new element in dom that will render the views of the webserial.
import "@danidoble/webserial-views";
import "@danidoble/webserial-views/dist/webserial-views.css";If you are using react in your project, you can use like this
import {BasicSerialViews} from "@danidoble/webserial-views/serial-views";
import "@danidoble/webserial-views/dist/webserial-views.css";
// ['system', 'dark', 'light']
const App = () => {
return (
<BasicSerialViews theme={"system"} /> {/*This is the component that will render the views*/}
);
}