cornell-glue-ui
v0.1.61
Published
Glue UI is Cornell WebDev's centralized UI component library. It implements our design system and serves as a single source of truth for React components used within our projects.
Maintainers
Readme
Glue UI
Glue UI is Cornell WebDev's centralized UI component library. It implements Cornell WebDev's Glue Design System and serves as a single source of truth for React components in our web applications.
Glue UI was built using:
Development
Building
npm run buildStorybook
To run a live-reload Storybook server on your local machine:
npm run install
npm run storybookTo export your Storybook as static files:
npm run storybook:exportGenerating New Components
npm run generate InsertComponentNamePublishing
Hosting via NPM
npm login
npm publishThe "prepublishOnly": "npm run build" script in package.json will execute before publish occurs, ensuring that the changes have compiled into the build directory before being published.
Usage
npm install cornell-glue-uiimport React from "react";
import { ExampleComponent } from "cornell-glue-ui";
const App = () => (
<div>
<h1>Hello I'm consuming the component library</h1>
<ExampleComponent />
</div>
);
export default App;