![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
taro-dropdown
Advanced tools
基于 Taro 的一个 dropdown 菜单的组件
# yarn
yarn add taro-dropdown
# npm
npm i taro-dropdown
<Dropdown
renderOverlay={
<View>
<View>item1</View>
<View>item2</View>
<View>item3</View>
</View>
}
>
<Button>click me</Button>
</Dropdown>
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
renderOverlay | 菜单Node节点 | ReactNode | - |
overlayClassName | 下拉菜单根元素的类名称 | string | - |
overlayStyle | 下拉菜单根元素的样式 | CSSProperties | - |
placement | 菜单弹出位置:bottomLeft bottomCenter bottomRight topLeft topCenter topRight | string | bottomLeft |
disabled | 菜单是否禁用 | boolean | - |
visible | 菜单是否显示,传入该值则需要自己手动控制菜单的显示与隐藏 | boolean | - |
arrow | 下拉框箭头是否显示 | boolean | true |
zIndex | 菜单以及mask的层级 | number | 5000 |
className | dropdown 组件的根元素类名 | string | - |
customStyle | dropdown 组件的根元素样式 | CSSProperties | - |
onVisibleChange | 菜单显示状态改变时调用,参数为 visible | function(visible) | - |
MIT © John60676
FAQs
taro dropdown component
The npm package taro-dropdown receives a total of 5 weekly downloads. As such, taro-dropdown popularity was classified as not popular.
We found that taro-dropdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.