# Beste UI

> Beautiful, accessible blocks, pieces and components for shadcn/ui and Tailwind CSS, built for React and Next.js. Install one with the shadcn CLI and the code is yours to edit: no runtime dependency, nothing to upgrade.

Markdown rendition of https://ui.beste.co/component/button5. Every page on the site has one: add `.md` to any address, or send `Accept: text/markdown`.

Whole catalog for LLMs: https://ui.beste.co/llms.txt. Registry index: https://ui.beste.co/r/registry.json

---
1. /
2. [Components](/components)
3. /
4. [Button](/components/button)
5. /
6. Split Button

# Split Button

A split button with a main action and a separate secondary trigger for menus and options.

PreviewCode

Deploy now

## Installation

Adds the component and everything it depends on to your project.

![](https://oud.pics/sm/l/npm.svg)npm![](https://oud.pics/sm/l/bun.svg)bun![](https://oud.pics/sm/l/pnpm.svg)pnpm![](https://oud.pics/sm/l/yarn.svg)yarn

Base UI

`npx shadcn add https://ui.beste.co/component/r-base/button5`

New here? Read the [installation guide](/docs/installation).

## Usage

The import and the props worth knowing about, in one place.

```
import { Button5 } from "@/components/beste/component/button5";
import Link from "next/link";

// Compose the MAIN segment with the render prop: your Link becomes the main
// control and the label stays as its children. The secondary segment is
// always a button (e.g. to open a menu).
<Button5
  label="Download"
  render={<Link href="/download" />}
  onSecondaryClick={() => console.log("choose platform")}
/>

<Button5
  label="Deploy now"
  onClick={() => console.log("deploy")}
  secondaryLabel="Deployment options"
  onSecondaryClick={() => console.log("open options")}
/>
```

## Playground

Turn the props on the right; the snippet under them is what you would write to get what you see.

Deploy now

Usage

```
import { Button5 } from "@/components/beste/component/button5";

<Button5
  label="Deploy now"
  secondaryLabel="Deployment options"
/>
```

Props

LabelSecondary label

Surface

Tonedark

## Props

Read from the component's own type, so this cannot drift from what it accepts.

| Prop             | Type                                       | Default   | Description                                                                                                                                                                                                |                                                                  |
| ---------------- | ------------------------------------------ | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| label\*          | string                                     | —         | Main action label                                                                                                                                                                                          |                                                                  |
| asChild          | boolean                                    | —         | Compose the MAIN segment shadcn-style (radix asChild): your element (e.g. a router Link) becomes the main control and the label is injected as its children. Pass the element without children of its own. |                                                                  |
| children         | React.ReactElement                         | —         | The element to render for the main segment when \`asChild\` is set                                                                                                                                         |                                                                  |
| href             | string                                     | —         | Fallback link for the main segment: renders a plain \`<a>\`. Prefer \`asChild\` with your framework's Link component.                                                                                      |                                                                  |
| onClick          | React.MouseEventHandler<HTMLButtonElement> | —         | Main action click handler (used when there is no href and no asChild)                                                                                                                                      |                                                                  |
| secondaryIcon    | LucideIcon                                 | —         | Icon of the secondary segment (defaults to ChevronDown)                                                                                                                                                    |                                                                  |
| secondaryLabel   | string                                     | —         | Accessible name of the secondary segment                                                                                                                                                                   |                                                                  |
| onSecondaryClick | React.MouseEventHandler<HTMLButtonElement> | —         | Secondary segment click handler (e.g. open a menu)                                                                                                                                                         |                                                                  |
| tone             | "dark" \| "primary"                        | "outline" | —                                                                                                                                                                                                          | Surface tone: solid dark (default), primary, or bordered outline |
| className        | string                                     | —         | Additional classes merged onto the root                                                                                                                                                                    |                                                                  |

[PreviousIcon Button](/component/button4)[NextAvatar Stack Button](/component/button6)

On this page
* [Preview](#preview)
* [Installation](#installation)
* [Usage](#usage)
* [Playground](#playground)
* [Props](#props)

## More Button components

[View all Button](/components/button)

[](/component/button2)

View all case studies

### Underline Arrow Button

A minimal text button with an animated underline and arrow for lightweight calls to action.

[](/component/button20)

Let's talk

### Magnetic Button

A magnetic button that is pulled toward the cursor on hover and springs back on leave.

[](/component/button18)

View manifest

### Corner Brackets Button

A monospace button framed by corner brackets that spring outward on hover.

[](/component/button4)

### Icon Button

An accessible icon button with a required label, three sizes, and circle or square shape.

[](/component/button21)

Book a demo

### Soft Action Button

A compact, softly rounded action button with a solid accent, soft neutral, or hairline outline tone and an optional trailing icon.

[](/component/button15)

Get in touch

### Expanding Reveal Button

An expanding icon button that reveals its label on hover or focus for compact layouts.

## Ship the interface, keep the code.

New blocks, pieces and components every week. Install one with a command and it is yours to edit. No runtime dependency, no upgrade path to fight.

[Browse the libraryBrowse the library](/blocks)[See pricingSee pricing](/pricing)

### Library

* [Blocks](/blocks)
* [Pages](/pages)
* [Pieces](/pieces)
* [Components](/components)
* [Search](/search)

### Learn

* [Docs](/docs)
* [AI & MCP](/docs/mcp)
* [Blog](/blog)
* [Free tools](/tools)
* [What's new?](/changelog)
* [Website Builder](https://beste.co)

### More

* [Pricing](/pricing)
* [Referrals](/referrals)
* [License](/license)
* [GitHub](https://github.com/beste-co/beste-ui)

### Shadcn Blocks

* [Shadcn Hero Blocks](/blocks/hero)
* [Shadcn Feature Blocks](/blocks/feature)
* [Shadcn Pricing Blocks](/blocks/pricing)
* [Shadcn CTA Blocks](/blocks/cta)
* [Shadcn FAQ Blocks](/blocks/faq)
* [Shadcn About Blocks](/blocks/about)
* [Shadcn Stats Blocks](/blocks/stats)
* [Shadcn Footer Blocks](/blocks/footer)
* [Shadcn Navigation Blocks](/blocks/navigation)
* [Shadcn Auth Blocks](/blocks/auth)
* [Shadcn Ecommerce Blocks](/blocks/ecommerce)
* [Shadcn Portfolio Blocks](/blocks/portfolio)
* [Shadcn Showcase Blocks](/blocks/showcase)
* [Shadcn Careers Blocks](/blocks/careers)
* [Shadcn Onboarding Blocks](/blocks/onboarding)
* [Shadcn Coming Soon Blocks](/blocks/coming-soon)
* [Shadcn Post Blocks](/blocks/post)
* [Shadcn Legal Blocks](/blocks/legal)
* [Shadcn Workflow Blocks](/blocks/workflow)
* [Shadcn News Blocks](/blocks/news)

© 2026, [Beste](https://beste.co). All rights reserved.