Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed Jul 9, 2024
1 parent 3b7b96f commit 11fb5c9
Show file tree
Hide file tree
Showing 6 changed files with 118 additions and 44 deletions.
63 changes: 63 additions & 0 deletions README.md
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
Loading

0 comments on commit 11fb5c9

Please sign in to comment.