akatsuki-ui
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

AkatsukiUI

npm npm bundle size

AkatsukiUI is a dynamic UI component library for React that allows customization according to customer needs.

Table of Contents

Installation

You can install the library using npm:

npm install akatsuki-ui

Or using yarn:

yarn add akatsuki-ui

Usage

Import the desired components into your project and start using them:

import React from 'react';
import { Button } from 'akatsuki-ui';

const App = () => (
<div>
<Button primary label="Click Me" />
</div>
);
export default App;

Components

Button

A basic button component with different styles. Props:

  • primary (boolean): If true, applies the primary style.
  • backgroundColor (string): Sets the background color of the button.
  • size (string): Size of the button. Options are small, medium, large.
  • label (string): The text label of the button.
  • onClick (function): Click event handler. Example:
<Button primary label="Primary Button" onClick={() => alert('Clicked!')} />

More Components

  • Menu: A Menu component.

For a full list of components and their usage, please refer to the documentation.

Customization

You can customize the components using CSS or styled-components. Here's an example of customizing the Button component:

import styled from 'styled-components';
import { Button } from 'akatsuki-ui';
const CustomButton = styled(Button)`
background-color: #ff0000;
border-radius: 10px;
`;
const App = () => (
<div>
<CustomButton label="Custom Button" />
</div>
);
export default App;

Contributing

We welcome contributions from the community! To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature-branch).
  6. Open a pull request.

© 2024 AkatsukiUI. All rights reserved.

Package Sidebar

Install

npm i akatsuki-ui

Weekly Downloads

1

Version

0.4.0

License

MIT

Unpacked Size

25.4 kB

Total Files

18

Last publish

Collaborators

  • sabermekki