Project to be used as a basis for new design systems projects
Use the package manager NPM to install Alexandria Library.
npm install alexandria-library
Alexandria Library React packages are ready to use in a Create React App
Here is a simple example to get you started:
import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from 'alexandria-library';
const App = () => (
<>
<Button>Example button</Button>
</>
);
ReactDOM.render(<App />, document.getElementById('root'));
To clone and run this application, you'll need Git and NPM on your computer. From your command line:
# Clone this repository
$ git clone https://github.com/Eronbello/alexandria-library.git
# Go into the repository
$ cd alexandria-library
# install dependencies
$ npm install
# You can see the app running at: http://localhost:6006
$ npm run storybook
To run the application tests, follow these steps:
$ npm run test
Possible improvements
- Add new components
- Add more examples
- Add more tests