children-with-click

v0.0.2arrow_drop_down
v0.0.2
v0.0.1
STATUS
Processing
DOWNLOADS
36
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
4 KB
ChildrenWithClick
1 contributor
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
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle 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 d8e.h&f f%f6 onClick gh=e o<
Properties
NameTypeDefault valueDescription
children
node

子元素

onClick
function

css class

Component
node"span"

容器元素

Help and resources