Rendyn

Component library

189 components

Product blocks

Overflow Actions

Overflow Actions separates the visible primary list from an expandable overflow list.

Interactive exampleReact Tailwind CSS

Practical React example

Expose a few primary actions and let someone reveal less frequent actions alongside them.

Before you copy and paste

Keep the example in the React rendering environment required by the imported component. Copy components/motion/overflow-actions.tsx and its returned support files from the Code tab; preserve the project-relative paths.

Listed package dependencies: clsx, lucide-react, motion, react, tailwind-merge.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Expose a few primary actions and let someone reveal less frequent actions alongside them

// Usage adapted from beUI's pinned MIT source.
// Copyright (c) 2026 Saurabh Chauhan. See ./LICENSES.md.
"use client";

import { CalendarClock, Eye, GitBranch, Pin } from "lucide-react";
import { useState } from "react";
import {
  type OverflowActionItem,
  OverflowActions,
} from "@/components/motion/overflow-actions";

const primaryActions: OverflowActionItem[] = [
  {
    id: "preview",
    label: "Preview",
    icon: <Eye className="h-4 w-4" />,
  },
  {
    id: "pin",
    label: "Pin",
    icon: <Pin className="h-4 w-4" />,
  },
];

const overflowActions: OverflowActionItem[] = [
  {
    id: "branch",
    label: "Branch",
    icon: <GitBranch className="h-4 w-4" />,
  },
  {
    id: "schedule",
    label: "Schedule",
    icon: <CalendarClock className="h-4 w-4" />,
  },
];

export function OverflowActionsPreview() {
  const [expanded, setExpanded] = useState(false);

  return (
    <div className="flex w-full items-center justify-center">
      <OverflowActions
        primaryActions={primaryActions}
        overflowActions={overflowActions}
        expanded={expanded}
        onExpandedChange={setExpanded}
        openLabel="Open action rail"
        closeLabel="Collapse action rail"
      />
    </div>
  );
}

Usage example adapted from beUI's pinned MIT source. Retain the source licence notices when copying.

Use stable action IDs and callbacks from the existing command layer. Choose whether invoking an action should collapse the extra list.

Customization

OverflowActionsProps.primaryActions
Required; OverflowActionItem[].
OverflowActionsProps.overflowActions
Required; OverflowActionItem[].
OverflowActionsProps.expanded
Optional; boolean.
OverflowActionsProps.defaultExpanded
Optional; boolean.
OverflowActionsProps.onExpandedChange
Optional; (expanded: boolean) => void.
OverflowActionsProps.onAction
Optional; (item: OverflowActionItem) => void.
OverflowActionsProps.collapseOnAction
Optional; boolean.
OverflowActionsProps.size
Optional; OverflowActionsSize.
OverflowActionsProps.openLabel
Optional; string.
OverflowActionsProps.closeLabel
Optional; string.
OverflowActionsProps.className
Optional; string.
OverflowActionsProps.classNames
Optional; OverflowActionsClassNames.

Integration notes

  • Keep a visible way to open overflow actions without relying on a hover gesture.
  • Disabled controls still need server-side authorization checks when their commands are called.

Component source: beUI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.

Better with your agent

Give your agent taste.

The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.

All components are free. Sign up only to connect MCP.

Connect to MCP