@lapidist/components
Version:
Lapidist components
67 lines (48 loc) • 2.89 kB
Markdown
<p align="center">
<a href="https://components.lapidist.net/" target="_blank" rel="noopener">
<img width="120" src="https://lapidist.net/logo.svg" alt="Lapidist Logo"/>
</a>
</p>
<h2 align="center">@lapidist/components</h2>
<div align="center">
Opinionated [React](https://reactjs.org/) UI library, built with [@lapidist/styles](https://github.com/bylapidist/styles) and [TypeScript](https://www.typescriptlang.org/).

[](https://www.npmjs.com/package/@lapidist/components)


[](https://codecov.io/gh/bylapidist/components)
[](https://codeclimate.com/github/bylapidist/components/maintainability)
[](https://www.npmjs.com/package/@lapidist/components)
[](https://github.com/bylapidist/components/issues)

[](https://github.com/bylapidist/components/actions?query=workflow%3ARelease)
</div>
## Getting Started
`@lapidist/components` is available as an [npm package](https://www.npmjs.com/package/@lapidist/components).
See [https://components.lapidist.net](https://components.lapidist.net) for the full documentation.
### Installation
```shell
npm install @lapidist/components
```
### Usage
Ensure you wrap your application with the `<ThemeProvider>` component.
Here is a quick example to get you started:
```jsx static
import React from 'react';
import { createRoot } from 'react-dom/client';
import { ThemeProvider, Text } from '@lapidist/components';
import '@lapidist/components/style.css';
const App = () => (
<ThemeProvider>
<Text>Hello world</Text>
</ThemeProvider>
);
const root = createRoot(document.querySelector('#app'));
root.render(<App />);
```
## Philosophy
- Quality over quantity: a small library of well-designed components is preferable to many poor components.
- Constraints are good: consistency takes precedence over configurability.
- Modern: we don't support older browsers.
## License
`@lapidist/components` is licensed under the MIT license. See LICENSE for the full text.