# uxcore-button-group

> uxcore-button-group component for uxcore.

Latest version **0.2.8** (published 2020-08-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install uxcore-button-group
pnpm add uxcore-button-group
yarn add uxcore-button-group
bun add uxcore-button-group
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.8 |
| Published | 2020-08-21 |
| First published | 2017-12-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 108.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | eternalsky |
| Maintainers | eternalsky, ex90rts, fireofsouth, taoqili |
| Keywords | react, react-component, uxcore-button-group, ButtonGroup, component |

## Links

- npm: https://www.npmjs.com/package/uxcore-button-group
- Repository: https://github.com/uxcore/uxcore-button-group
- Homepage: https://github.com/uxcore/uxcore-button-group#readme
- Issues: http://github.com/uxcore/uxcore-button-group/issues
- npm.io page: https://npm.io/package/uxcore-button-group

## Dependencies (6)

- [classnames](https://npm.io/package/classnames.md) ^2.1.2
- [prop-types](https://npm.io/package/prop-types.md) 15.x
- [uxcore-menu](https://npm.io/package/uxcore-menu.md) ^4.0.0
- [uxcore-button](https://npm.io/package/uxcore-button.md) ^0.4.15
- [uxcore-dropdown](https://npm.io/package/uxcore-dropdown.md) ^0.5.0
- [react-lifecycles-compat](https://npm.io/package/react-lifecycles-compat.md) ^3.0.4

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.2.8 (latest) — 2020-08-21
- 0.2.7 — 2018-11-23
- 0.2.6 — 2018-11-13
- 0.2.5 — 2018-11-09
- 0.2.4 — 2018-09-18
- 0.1.8 — 2018-09-18
- 0.2.3 — 2018-08-13
- 0.2.2 — 2018-07-24
- 0.2.1 — 2018-06-29
- 0.2.0 — 2018-06-28
- 0.1.6 — 2018-05-18
- 0.1.5 — 2018-01-09
- 0.1.4 — 2018-01-09
- 0.1.3 — 2018-01-09
- 0.1.2 — 2018-01-09
- … 2 more at https://npm.io/package/uxcore-button-group/versions

## README

## uxcore-button-group

React button group

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]
[![Dependency Status][dep-image]][dep-url]
[![devDependency Status][devdep-image]][devdep-url] 
[![NPM downloads][downloads-image]][npm-url]

[![Sauce Test Status][sauce-image]][sauce-url]

[npm-image]: http://img.shields.io/npm/v/uxcore-button-group.svg?style=flat-square
[npm-url]: http://npmjs.org/package/uxcore-button-group
[travis-image]: https://img.shields.io/travis/uxcore/uxcore-button-group.svg?style=flat-square
[travis-url]: https://travis-ci.org/uxcore/uxcore-button-group
[coveralls-image]: https://img.shields.io/coveralls/uxcore/uxcore-button-group.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/uxcore/uxcore-button-group?branch=master
[dep-image]: http://img.shields.io/david/uxcore/uxcore-button-group.svg?style=flat-square
[dep-url]: https://david-dm.org/uxcore/uxcore-button-group
[devdep-image]: http://img.shields.io/david/dev/uxcore/uxcore-button-group.svg?style=flat-square
[devdep-url]: https://david-dm.org/uxcore/uxcore-button-group#info=devDependencies
[downloads-image]: https://img.shields.io/npm/dm/uxcore-button-group.svg
[sauce-image]: https://saucelabs.com/browser-matrix/uxcore-button-group.svg
[sauce-url]: https://saucelabs.com/u/uxcore-button-group


### Development

```sh
git clone https://github.com/uxcore/uxcore-button-group
cd uxcore-button-group
npm install
npm run server
```

if you'd like to save your install time，you can use uxcore-tools globally.

```sh
npm install uxcore-tools -g
git clone https://github.com/uxcore/uxcore-button-group
cd uxcore-button-group
npm install
npm run dep
npm run start
```

### Test Case

```sh
npm run test
```

### Coverage

```sh
npm run coverage
```

## Demo

http://uxcore.github.io/components/button-group

## Contribute

Yes please! See the [CONTRIBUTING](https://github.com/uxcore/uxcore/blob/master/CONTRIBUTING.md) for details.

## API

## Props

| Name | Type | Required | Default | Comments |
|---|---|---|---|---|
| prefixCls | String | No | kuma-button-group | 类名前缀，不使用 kuma 主题时可以使用 |
| className | String | No | | 额外类名 |
| type | String | No | outline | 同 Button 的 type，在 separated 为 false 的情况下，单个 button 的 type 将被这个 type 覆盖 |
| size | String | no | medium | 同 Button 的 size，ButtonGroup 下必须保证 size 统一，设置单个 Button 的 size 无效 |
| separated | Bool | No | false | 是否是分隔的形态，以下 props 仅在 separated 为 true 时起效 | 
| maxLength | Number | No | 3 | 超过多少个 Button 时开始折叠 |
| locale | String | No | zh-cn | 国际化 |
| actionType | String | No | button | 默认形态是按钮型(button) 还是 文字链接型(link) |

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