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

    52
  • Orb

    Orb

    26
  • Combobox

    Combobox

    14
  • 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

    100
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    295
  • Sidebar

    Sidebar

    422
  • Pagination with Ellipsis

    Pagination with Ellipsis

    25
  • Pagination

    Pagination

    3
  • Tabs

    Tabs

    33
  • Menu

    Menu

    23
  • Breadrcrumb

    Breadrcrumb

    6