empty
v0.0.7arrow_drop_downv0.0.7
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
12
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
N/A
Empty
1 contributor
Like
Install empty as a package?
Copied
npm i @bit/webnovel.read-ui.empty
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
modifieddraft
chevron_left
chevron_right
Empty
i!5i"d8:g):
Demo1
import React from 'react';
import Empty from '@bit/webnovel.read-ui.empty';
import '@bit/webnovel.read-ui.style';
export default (
<div>
<Empty title="Empty title" >
Something went wrong! <a href="##" className="c_primary" title="more">More</a>
</Empty>
<Empty>
Something went wrong!
</Empty>
<Empty title="No Data"/>
<Empty imgUrl="" title="No Data">
Something went wrong!
</Empty>
</div>
)
Properties
Name | Type | Default value | Description |
---|---|---|---|
title | string | "" | 图片 |
imgUrl | string | emptyImg | 图片 |
children | string | node | null | 文案 如果是string 会放到 p 标签里面 |