0.2.0 • Published 1 year ago
@nautical-commerce/ui v0.2.0
Component Library for Nautical Commerce storefronts
This package contains common React components for customer storefronts
Installation
This package can be installed via npm
or yarn
# Using npm
$ npm install --save @nautical-commerce/ui
# Using yarn
$ yarn add @nautical-commerce/ui
Usage
The just import the components from the main package.
import { Button } from "@nautical-commerce/ui";
export const Component = () => {
return (
<div>
<Button>Click Me</Button>
</div>
);
};
CSS
This package also exports the CSS required for the components. You can import this CSS by referencing @nautical-commerce/ui/index.css
by either including it through your build by importing it through the existing CSS pipeline.