-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
118 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,65 @@ | ||
# react-block-steps | ||
> Block steps for react. | ||
[![version][version-image]][version-url] | ||
[![license][license-image]][license-url] | ||
[![size][size-image]][size-url] | ||
[![download][download-image]][download-url] | ||
|
||
## installation | ||
```shell | ||
npm install -S @jswork/react-block-steps | ||
``` | ||
|
||
## usage | ||
1. import css | ||
```scss | ||
@import "~@jswork/react-block-steps/dist/style.css"; | ||
|
||
// or use sass | ||
@import "~@jswork/react-block-steps/dist/style.scss"; | ||
``` | ||
2. import js | ||
```js | ||
import ReactBlockSteps from '@jswork/react-block-steps'; | ||
import '@jswork/react-block-steps/dist/style.scss'; | ||
|
||
function App() { | ||
return ( | ||
<div className="m-10 p-4 shadow bg-gray-100 text-gray-800 hover:shadow-md transition-all"> | ||
<div className="badge badge-warning absolute right-0 top-0 m-4"> | ||
Build Time: {BUILD_TIME} | ||
</div> | ||
<h1>react-block-steps</h1> | ||
<div className="y-3"> | ||
<ReactBlockSteps value={1} activeClassName="!bg-red-600 text-white" | ||
itemClassName="rounded-full fcc bg-red-300 size-5 text-xs" className="fcc x-2 bg-gray-200" /> | ||
<ReactBlockSteps value={2} activeClassName="!bg-red-600 text-white" | ||
itemClassName="rounded-full fcc bg-red-300 size-5 text-xs" className="fcc x-2 bg-gray-200" /> | ||
<ReactBlockSteps value={10} activeClassName="!bg-red-600 text-white" | ||
itemClassName="rounded-full fcc bg-red-300 size-5 text-xs" className="fcc x-2 bg-gray-200" /> | ||
</div> | ||
</div> | ||
); | ||
} | ||
export default App; | ||
``` | ||
## preview | ||
- https://afeiship.github.io/react-block-steps/ | ||
## license | ||
Code released under [the MIT license](https://github.com/afeiship/react-block-steps/blob/master/LICENSE.txt). | ||
[version-image]: https://img.shields.io/npm/v/@jswork/react-block-steps | ||
[version-url]: https://npmjs.org/package/@jswork/react-block-steps | ||
[license-image]: https://img.shields.io/npm/l/@jswork/react-block-steps | ||
[license-url]: https://github.com/afeiship/react-block-steps/blob/master/LICENSE.txt | ||
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-block-steps | ||
[size-url]: https://github.com/afeiship/react-block-steps/blob/master/dist/react-block-steps.min.js | ||
[download-image]: https://img.shields.io/npm/dm/@jswork/react-block-steps | ||
[download-url]: https://www.npmjs.com/package/@jswork/react-block-steps |
Oops, something went wrong.