children-with-click
v0.0.2arrow_drop_downv0.0.2
v0.0.1
STATUS
Processing
DOWNLOADS
36
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
4 KB
ChildrenWithClick
1 contributor
Like
Install children-with-click as a package?
Copied
npm i @bit/webnovel.read-ui.children-with-click
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
ChildrenWithClick
d8:f*g%e-eg4 g;e. click d:d;6
Demo
```JSX
import React from 'react';
import ChildrenWithClick from "@/components/ChildrenWithClick";
export default function () {
const onClick = e => {
e.preventDefault();
};
return (
<ChildrenWithClick onClick={onClick}>{children}</ChildrenWithClick>
)
}
- f3(fo<e-eg4 d8 e.h&f f%f6
onClick
gh=e o<
Properties
Name | Type | Default value | Description |
---|---|---|---|
children | node | 子元素 | |
onClick | function | css class | |
Component | node | "span" | 容器元素 |