# frox-ui

> Frox UI React components

Latest version **0.1.12** (published 2022-05-09) · 0 weekly downloads

## Install

```sh
npm install frox-ui
pnpm add frox-ui
yarn add frox-ui
bun add frox-ui
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.12 |
| Published | 2022-05-09 |
| First published | 2022-05-01 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 20 |
| Unpacked size | 286.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Victoria Buyakova |
| Maintainers | victoria.buyakova |
| Keywords | react, components, ui, library |

## Links

- npm: https://www.npmjs.com/package/frox-ui
- npm.io page: https://npm.io/package/frox-ui

## Dependencies (20)

- [react](https://npm.io/package/react.md) ^18.0.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.0.0
- [typescript](https://npm.io/package/typescript.md) ^4.6.3
- [web-vitals](https://npm.io/package/web-vitals.md) ^2.1.4
- [@types/jest](https://npm.io/package/@types/jest.md) ^27.4.1
- [@types/node](https://npm.io/package/@types/node.md) ^16.11.26
- [@types/react](https://npm.io/package/@types/react.md) ^17.0.43
- [react-select](https://npm.io/package/react-select.md) ^5.2.2
- [react-scripts](https://npm.io/package/react-scripts.md) 5.0.0
- [@storybook/react](https://npm.io/package/@storybook/react.md) ^6.4.19
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^6.3.0
- [styled-normalize](https://npm.io/package/styled-normalize.md) ^8.0.7
- [styled-components](https://npm.io/package/styled-components.md) ^5.3.5
- [react-highlight-words](https://npm.io/package/react-highlight-words.md) ^0.17.0
- [@testing-library/react](https://npm.io/package/@testing-library/react.md) ^12.1.4
- [@types/styled-components](https://npm.io/package/@types/styled-components.md) ^5.1.24
- [@testing-library/jest-dom](https://npm.io/package/@testing-library/jest-dom.md) ^5.16.3
- [@storybook/testing-library](https://npm.io/package/@storybook/testing-library.md) ^0.0.9
- [@testing-library/user-event](https://npm.io/package/@testing-library/user-event.md) ^13.5.0
- [@types/react-highlight-words](https://npm.io/package/@types/react-highlight-words.md) ^0.16.4

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 0.1.12 (latest) — 2022-05-09
- 0.1.11 — 2022-05-09
- 0.1.10 — 2022-05-09
- 0.1.9 — 2022-05-05
- 0.1.8 — 2022-05-04
- 0.1.7 — 2022-05-04
- 0.1.6 — 2022-05-04
- 0.1.5 — 2022-05-02
- 0.1.4 — 2022-05-02
- 0.1.3 — 2022-05-01
- 0.1.2 — 2022-05-01
- 0.1.1 — 2022-05-01
- 0.1.0 — 2022-05-01

## README

<h1 align='center'>
  FroxUI
</h1>


<p align='center'>
  A React component library for building user interfaces.
</p>


### Usage
```bash
npm install frox-ui # or yarn add frox-ui
```

```jsx
import React from 'react'
import { Theme, GlobalStyle, useGlobalTheme  } from 'frox-ui'

export const YourApp = () => {
  const { globalTheme } = useGlobalTheme();
  return (
    <Theme globalTheme={globalTheme}>
      <GlobalStyle />
      // Your code goes here
    </Theme>
  );
};
```
### Components

Button
------
Prop | Description                                                                                                                                            | Optional/Required 
---- |--------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------
size| Button size<br/> ◦ Can be  `large`, `medium` or `small`                                                                                                | required          
color| Button color <br/> ◦ Can be `primary`, `secondary`, `success`, `error`, `info` or `warning`                                                            | required          
icon| If you need an icon on your button, set to determine whether the icon will be to the left or right of the button text <br/> ◦ Can be 'left' or 'right' | optional          
disabled| Disable button <br/> ◦ Can be `true` or `false`                                                                                                        | optional                                                                                                                        
type| Button type <br/> ◦ Can be `button`, `submit` or `reset`                                                                                               | optional          
onClick| Function that determines what will happen when the button is pressed                                                                                   | optional                                                                                                                                                              
iconUrl| `String` path to the icon                                                                                                                              | optional                                                                                                                                              
flashOnHover| Determines whether the flash when the mouse pointer hover the button <br/> ◦ Can be `true` or `false`                                                  | required                                                                                                                                                
-------
Checkbox
------
Prop | Description                                                      | Optional/Required
---- |------------------------------------------------------------------|-------------------
id| Checkbox unique identifier<br/> ◦ Should be `string`             | required
label| Defines a label for checkbox<br/> ◦ Should be `string`           | optional
checked| Defines whether the checkbox is checked or not<br/> ◦ Can be `true` or `false` | optional
onChange| Function to control the checkbox<br/> ◦ Can take as argument `ChangeEvent<HTMLInputElement>`| optional                
---------
Container
---------
Prop | Description             | Optional/Required
---- |-------------------------|-------------------
size| Container size<br/> ◦ Can be `large` which max-size is `1530px`  or `small` which max-size is `1240px`| required
children| Children of the container<br/> ◦ Should be `React.ReactNode`| required
------------
CustomSelect
------------
Prop | Description                                                                                                     | Optional/Required
---- |-----------------------------------------------------------------------------------------------------------------|-------------------
options| Select options array<br/> ◦ Should contain objects with `label` which is `string` and `value` which is `string` |required             
handleChangeSelect| Function to manage select. Take selected value as argument                                                      | required 
defaultValue| Select value which displays by  default<br/> ◦ Can be `options array` or `null`| optional
placeholder| Select placeholder<br/> ◦ Should be `string`| required                                                                                                        
isDisabled| Disable select <br/> ◦ Can be `true` or `false` | optional                                                                                                            
-----
Input
-----
Prop | Description                                                                  | Optional/Required
---- |------------------------------------------------------------------------------|-------------------
inputSize| Input size<br/> ◦ Can be  `large` or `small`                                 | required
label| Defines a label for input<br/> ◦ Should be `string`                          | required           
onEnter| Function that determines what will happen when the `Enter button` is pressed | optional
leftIconSrc| `String` path to the left input icon                                         | optional
rightIconSrc| `String` path to the right input icon                                        | optional
id| Input unique identifier<br/> ◦ Should be `string`                                 | required
------
Loader
------
Prop | Description                                                                  | Optional/Required
---- |------------------------------------------------------------------------------|-------------------
There are no props for this component| Preloader for your application|
---------------
ModeSwitcher
-------------------
Prop | Description                                                                                                      | Optional/Required
---- |------------------------------------------------------------------------------------------------------------------|-------------------
handleChange| Function to change theme<br/> ◦ Should be `handleChangeTheme` extracted from `useGlobalTheme` hook| required
------
Sidebar
-------
Prop | Description                                                                                                                                                                                         | Optional/Required
---- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------
sidebarLinks| Sidebar links array<br/> ◦ Should contain objects with `label` which is `string`, `icon`, notification which is `string` or `number` and linkTo (the path that the link leads to) which is `string` |required
sidebarButtons| Sidebar buttons array<br/> ◦ Should contain objects with `label` which is `string` and `icon`                        |required
logoSrc| Path to logo image<br/> ◦ Should be `string`| required
logoAlt| Alternative text for logo<br/> ◦ Should be `string`| required
handleChangeTheme| Function to change theme<br/> ◦ Should be `handleChangeTheme` extracted from `useGlobalTheme` hook|required
logoLinkTo| Link to the page that logo leads to<br/> ◦ Should be `string`| required
logoName| Name of the logo<br/> ◦ Should be `string`| optional
------
Table
-----
Prop | Description                                                                                                       | Optional/Required
---- |-------------------------------------------------------------------------------------------------------------------|-------------------
tableData| Table data array                                                                                                  | required
headerItems| Table header items array                                                                                          | required
tableDataCallback|  Function that will be map in table body. Provide inside `<Row />` component `<Cell />` components with your data | required

---
_Source: https://npm.io/package/frox-ui · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
