halaska-studio

Segmented Control

Navigation 18

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

    48
  • Orb

    Orb

    22
  • Combobox

    Combobox

    12
  • Choicebox

    Choicebox

    11
  • Table

    Table

    6
  • Input OTP

    Input OTP

    6
  • Switch

    Switch

    5
  • Dialog

    Dialog

    5

More in Navigation

View all
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    73
  • Footer with Big Wordmark

    Footer with Big Wordmark

    40
  • Sidebar

    Sidebar

    391
  • Oversized 404 Numeral

    Oversized 404 Numeral

    78
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    67
  • Pagination

    Pagination

    109
  • Pagination

    Pagination

    44
  • NavBar

    NavBar

    2