@wingconsole/ui
v0.85.34
Published
> ⚠️ This package is meant to be used internally by the Wing Console.
Downloads
3,569
Readme
@wingconsole/ui
⚠️ This package is meant to be used internally by the Wing Console.
Usage
The Console react component:
import { Console } from "@wingconsole/ui";
import React from "react";
import ReactDOM from "react-dom/client";
ReactDOM.createRoot(document.querySelector("#root")!).render(
<React.StrictMode>
<Console trpcUrl="/trpc" wsUrl={`ws://${location.host}`} />
</React.StrictMode>,
);
The Tailwindcss config:
const ui = require("@wingconsole/ui/tailwind-plugin.cjs");
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: "class",
content: [...ui.content, "./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
plugins: [...ui.plugins],
theme: { ...ui.theme },
};
License
This code is distributed under the Wing Cloud Console License.