Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eioluseyi/idares-ui


https://github.com/eioluseyi/idares-ui

website-project

Last synced: about 4 hours ago
JSON representation

Awesome Lists containing this project

README

        

# iDares UI

###### A collection of select accessible and customizable react UI components.

---

#### Table of contents

1. [ Available components ](#available-components)
2. [ Installation ](#installation)
3. [ Usage ](#usage)
- [Default usage](#default-usage)
- [Control `page`](#control-page)
- [Props](#props)
4. [ Storybook docs ](#story-book)

##### Available components

- Pagination
- ...

##### Installation

Using npm:

```javascript
$ npm install @idares-ui/react
```

Using yarn:

```javascript
$ yarn add @idares-ui/react
```

##### Usage

###### Default usage

```javascript
import { Pagination } from "@idares-ui/react";

...

...

```

###### Control `page` in your component

```javascript
import { Pagination } from "@idares-ui/react";

...
const [page, setPage] = React.useState(1);

...

...
```

###### Props and default values

| Prop | Type | Default |
| --------- | :------: | ------: |
| page | number | `1` |
| perPage | number | `10` |
| count | number | `60` |
| setPage | function | `void` |
| baseSize | bsType | `"xl"` |
| baseColor | string | `null` |

```typescript
bsType = "xs" | "sm" | "md" | "lg" | "xl" |
```

##### Storybook docs

View the full Storybook documentation [ here ](https://idares-ui.netlify.app)