2ani-ui
v1.1.0-beta.2
Published
Đây là một thư viện UI, giúp cải thiện quá trình tạo giao diện người dùng.
Downloads
44
Maintainers
Readme
Welcome to 2ANI UI ⚡️
Works out of the box. 2ani UI contains a set of polished React components that work out of the box.
Flexible & composable. 2ani UI components are built on top of a React UI Primitive for endless composability.
Accessible. 2ani UI components follows the WAI-ARIA guidelines specifications.
Dark Mode 😍: All components are dark mode compatible.
Looking for the documentation?
https://ui.ani2am.me/
Jointly develop the project
https://github.com/fo-nhan/2ani-ui
Installing 2ani UI
⚡️2ANI UI is made up of multiple components and tools which you can import
one by one. All you need to do is install the @2ani-ui
package:
$ yarn add 2ani-ui
# or
$ npm install --save 2ani-ui
Getting set up
To start using the components, please follow these steps:
- Wrap your application in a
ThemeProvider
provided by 2ani-ui
import { UI2aniContext } from "2ani-ui";
const App = ({ children }) => (
<UI2aniContext>
<div>{children}</div>
</UI2aniContext>
);
- Import
styles
provided by 2ani-ui
import '2ani-ui/src/styles/config.css';
const App = ({ children }) => (
<UI2aniContext>
<div>{children}</div>
</UI2aniContext>
);
- Now you can start using components like so!:
import { Button } from "2ani-ui";
const App = () => <Button>I just consumed some 2ANI UI!</Button>;