# Behavioral History Select

> The Behavioral History Select is a smart, user-adaptive dropdown component built with shadcn UI that enhances the standard select experience by remembering user behavior. It dynamically tracks recently and frequently selected items, displaying them at the top of the list with visual indicators like badges or counts, allowing users to quickly access their most used choices. The component persists selection history via localStorage, making it adaptive across sessions, and its configurable fixed width ensures a stable, professional layout. With distinct sections for recent selections and other options, optional frequency markers, and a clean, modern interface, it’s highly reusable in forms, dashboards, multi-step workflows, and design systems—turning a simple dropdown into an intelligent, interactive, and visually informative selection tool.

- Author: [Ruixen UI](https://21st.dev/@ruixen.ui)
- Library: [Ruixen UI](https://21st.dev/@ruixen.ui/library/ruixen-ui)
- License: unknown
- Live preview: https://21st.dev/@ruixen.ui/components/behavioral-history-select

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/ruixen.ui/behavioral-history-select?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt
