@wingconsole/ui
TypeScript icon, indicating that this package has built-in type declarations

0.73.11 • Public • Published

@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @wingconsole/ui

Weekly Downloads

1,329

Version

0.73.11

License

SEE LICENSE IN LICENSE.md

Unpacked Size

251 kB

Total Files

5

Last publish

Collaborators

  • monabot