@variocube/app-ui
v1.16.2
Published
Common UI components for Variocube applications.
Readme
app-ui
Common UI components for Variocube applications.
Demos
Check out the demos hosted with GitHub pages: https://variocube.github.io/app-ui
Using the splash screen
- Reference the splash template in your
HtmlWebpackPluginoptions:
{
plugins:
[
new HtmlWebPackPlugin({
filename: "./index.html",
template: "./node_modules/@variocube/app-ui/src/splash/template.html",
title: "My splashy app",
}),
// ,..other plugins
];
// ...other config
}- Use the
renderfunction ofapp-uiinstead of the one fromreact-dom:
import {render} from "@variocube/app-ui";
import * as React from "react";
import {App} from "./App";
render(<App />);Using local Google Fonts
Add
VCThemeProvideror theRobotoFontcomponent to your application.Configure a loader rule for webfonts in your webpack config:
{
module: {
rules:
[
{
test: /\.woff(2?)$/,
type: "asset/resource",
},
// ...other rules
];
}
// ...other config
}Using for local development
- In the project run: npm pack
- In Consumer Project run: npm install ..\app-ui\variocube-app-ui-1.0.0.tgz
