halaska-studio

Segmented Control

Navigation 16

About

An iOS-style segmented control where a sliding thumb animates between options to switch between a small set of views or filters.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Segmented Control to your project and fits it to your theme.

Code

How Segmented Control is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import SegmentedControl from "@/components/ui/segmented-control";
import { useState } from "react";

export default function SegmentedControlDemo() {
  const [view, setView] = useState("Inbox");
  return (
    <SegmentedControl
      options={["Inbox", "Assigned", "Resolved"]}
      value={view}
      onChange={setView}
    />
  );
}

More by halaska-studio

View all
  • Dot Grid

    Dot Grid

    41
  • Orb

    Orb

    20
  • Combobox

    Combobox

    9
  • Choicebox

    Choicebox

    9
  • Input OTP

    Input OTP

    5
  • Switch

    Switch

    4
  • Dialog

    Dialog

    4
  • Hover Card

    Hover Card

    4

More in Navigation

View all
  • Sidebar

    Sidebar

    349
  • Oversized 404 Numeral

    Oversized 404 Numeral

    69
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    57
  • Footer

    Footer

    453
  • Dorpdown Navigation

    Dorpdown Navigation

    235
  • Tabs like bookmark

    Tabs like bookmark

    75
  • Pagination Ant

    Pagination Ant

    3
  • Navbar

    Navbar

    8