About
Dropdown selector for choosing from a list of options. Astryx by Meta. Source: https://astryx.atmeta.com/components/Selector
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Selector to your project and fits it to your theme.
Code
How Astryx Selector is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
/* Copyright (c) 2026 Meta Platforms, Inc. See MIT notice in astryx-selector.tsx. */
import '@/components/ui/astryx-selector-utils/astryx-preview.css';
import {useState} from 'react';
import {Selector} from '@/components/ui/astryx-selector';
function OfficialSample() {
const [value, setValue] = useState<string | undefined>();
return (
<Selector
width="100%"
placement="below"
label="Fruit"
options={['Apple', 'Banana', 'Orange', 'Mango', 'Pineapple']}
placeholder="Select a fruit..."
value={value}
onChange={setValue}
/>
);
}
export default function Demo() {
return (
<div className="astryx-demo" data-astryx-theme="neutral" data-theme="light">
<div className="astryx-demo-content" data-centered style={{maxWidth: 350}}>
<OfficialSample />
</div>
</div>
);
}















