Blank for react.
npm install -S @jswork/react-blank
Name | Type | Required | Default | Description |
---|---|---|---|---|
className | string | false | - | The extended className for component. |
value | number | false | - | The blank height. |
unit | string | false | 'px' | The height style unit. |
- import css
@import "~@jswork/react-blank/dist/style.css";
// or use sass
@import "~@jswork/react-blank/dist/style.scss";
// customize your styles:
$react-blank-options: ()
- import js
import ReactDemokit from '@jswork/react-demokit';
import React from 'react';
import ReactDOM from 'react-dom';
import ReactBlank from '@jswork/react-blank';
import './assets/style.scss';
class App extends React.Component {
render() {
return (
<ReactDemokit
className="p-3 app-container"
url="https://github.com/afeiship/react-blank">
<article className="message is-info">
<div className="message-header">Article</div>
<div className="message-body">
<p>
少年时,想碰到一个聂小倩,拼了性命爱一场,天亮前带着她的魂魄远走他乡。
</p>
<ReactBlank value={100} className="my-3 has-background-white"/>
<p>
青年时,想碰到一个白素贞,家大业大,要啥有啥,吃完软饭一抹嘴,还有人负责把她关进雷峰塔。
中年时,想要一个田螺姑娘,温婉可人,红袖添香,半夜写累了,让她变回原形,加干辣椒、花椒、姜、蒜片爆炒,淋入香油,起锅装盘。
</p>
</div>
</article>
</ReactDemokit>
);
}
}
ReactDOM.render(<App />, document.getElementById('app'));
Code released under the MIT license.