Atelier UI

搜索组件…

搜索组件…

Split Button

主操作加下拉箭头的分裂按钮,菜单支持外部点击和 Esc 关闭。

在沙盒中编辑

复制一段给 AI 编程工具的提示词,包含源码、依赖和用法

属性

SplitButtonProps

同时支持以下类型的全部属性: Omit<React.ComponentProps<"button">, "children">

属性类型默认值说明
labelstring"Publish"—
itemsSplitButtonItem[]defaultItems—

安装

$ npx shadcn@latest add https://chromotion.dev/r/split-button.json

同类组件