halaska-studio

Segmented Control

Navigation 20

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

    55
  • Orb

    Orb

    28
  • Combobox

    Combobox

    15
  • Choicebox

    Choicebox

    13
  • Table

    Table

    8
  • Input OTP

    Input OTP

    8
  • Switch

    Switch

    6
  • Dialog

    Dialog

    6

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    151
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    391
  • Sidebar

    Sidebar

    437
  • Menu

    Menu

    2
  • Footer Section

    Footer Section

    1
  • Tabs

    Tabs

    35
  • Meniscus — Liquid Bottom Navigation Bar

    Meniscus — Liquid Bottom Navigation Bar

    12
  • Pagination

    Pagination

    118