# silverbulletclient

> silverBulletClient React component

Latest version **1.0.0** (published 2017-11-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install silverbulletclient
pnpm add silverbulletclient
yarn add silverbulletclient
bun add silverbulletclient
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-11-13 |
| First published | 2017-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | andrewt3000 |
| Keywords | react-component |

## Links

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

## Dependencies (1)

- [antd](https://npm.io/package/antd.md) ^2.13.10

## Recent versions

- 1.0.0 (latest) — 2017-11-13

## README

# silverBulletClient

[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]
[![Coveralls][coveralls-badge]][coveralls]



React/antd data aware components.  
Highly opionated and based on rest and normalization standards.  

### SBSelect
Renders data aware antd Select
#### Properties: 
endPoint - api end point, usually the table name. (required)  
value - initial value of component  
keyValue - defaults to "id"  
displayValue - defaults to "name"  

### SBGrid
Renders data aware, antd table
#### Properties
endPoint: api end point, usually the table name. (required)  
columns: passed to antd table columns (required)  
record: used to filter table data and initialization object for add  
delete: boolean. show delete button defaults to true.  
update: boolean. show update button. defaults to true.  

### SBAddButton
Renders button that triggers modal containing form to add record
#### Properties
endPoint: api end point, usually the table name. (required)  
columns: columns to collect on form.  
record: initialization object.  
reload: function to reload data   

### SBEditButton
Renders button that triggers modal containing form to update record
#### Properties
endPoint: api end point, usually the table name. (required)  
columns: columns to collect on form.  
reload: function to reload data  

### SBDeleteButton
Renders button that prompts user with modal to confirm deletion.
#### Properties
endPoint: api end point, usually the table name. (required)  
deleteId: record of id to delete  


### SBGridModal
Wraps SBGrid with modal.

[build-badge]: https://img.shields.io/travis/user/repo/master.png?style=flat-square
[build]: https://travis-ci.org/user/repo

[npm-badge]: https://img.shields.io/npm/v/npm-package.png?style=flat-square
[npm]: https://www.npmjs.org/package/npm-package

[coveralls-badge]: https://img.shields.io/coveralls/user/repo/master.png?style=flat-square
[coveralls]: https://coveralls.io/github/user/repo

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