dialog-stick
v0.0.2arrow_drop_downv0.0.2
v0.0.1
STATUS
Processing
DOWNLOADS
2
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
49 KB
Author: ziven27
Date: 8/14/2020
Desc: 这是什么?
1 contributor
Like
Install dialog-stick as a package?
Copied
npm i @bit/webnovel.read-ui.dialog-stick
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
chevron_left
chevron_right
DialogStick
e8e:e<9g*
Demo
```JSX
import React from 'react';
import DialogStick from '@bit/webnovel.read-ui.dialogstick';
import "@bit/webnovel.read-ui.style";
export default function () {
const [open, setOpen]=useState(false);
return (
<div>
<button type="button" onClick={()=>{ setOpen(false) }}>f>g$:</button>
<DialogStick title="More" open={open} onClose={()=>{ setOpen(false) }}>
<p>
f>g$:e<9g*
<p>
</DialogStick>
</div>
)
}
Properties
Name | Type | Default value |
---|---|---|
children | node | null |
className | string | "" |
onClose | function | () => {} |
open | bool | false |
title | string | null |