oxygen-select
БесплатноБез исполняемых скриптовНе проверенUse the Oxygen UI Select with a fixed label above the field instead of MUI's floating label, and a placeholder the developer provides. Use ComplexSelect with…
от wso2★ 67 звёзд на GitHubОб этом скилле
Fixed-Label Select
Oxygen UI selects use a fixed label that sits above the field and never moves. Do not use MUI's floating label, which starts inside the field and shrinks into the border on focus. The floating variant still works, but only for existing screens; never write new code with it.
Fixed label (use) Floating label (don't use)
Environment ┌─ Environment ───────┐
┌─────────────────────┐ │ Production ▾ │
│ Production ▾ │ └─────────────────────┘
└─────────────────────┘
Instructions
- Import
Selectfrom@wso2/oxygen-ui, never from@mui/material.labelPlacementis an Oxygen UI prop, and the MUISelectignores it. - Add
labelPlacement="top"andlabelto everySelect. Do not wrap it inFormControlor add anInputLabel; the component draws its own. - Give every
Selectaplaceholder. Get the text from the developer; never make it up (see Placeholder text). - Mark required selects with
required; the theme draws the*. - When the select needs helper text or validation messages, use
TextField select labelPlacement="top"instead (see theoxygen-textfieldskill). It has the same fixed label, supportshelperText, and takes the sameplaceholder. - For forms (validation, sections, wizards), also follow the
oxygen-formskill.
Usage
import { Select, MenuItem } from '@wso2/oxygen-ui';
<Select
labelPlacement="top"
label="Environment"
placeholder="Select an environment"
required
value={env}
onChange={(e) => setEnv(e.target.value)}
>
<MenuItem value="dev">Development</MenuItem>
<MenuItem value="prod">Production</MenuItem>
</Select>
With helper text:
import { TextField, MenuItem } from '@wso2/oxygen-ui';
<TextField
select
labelPlacement="top"
label="Environment"
placeholder="Select an environment"
helperText="Where the component is deployed."
value={env}
onChange={(e) => setEnv(e.target.value)}
>
<MenuItem value="dev">Development</MenuItem>
<MenuItem value="prod">Production</MenuItem>
</TextField>
Placeholder text
Every select shows a placeholder while nothing is selected. The developer owns this text, so ask for it.
Before writing the code, check whether the developer has given placeholder text for each select.
If any is missing, ask the developer once, listing every select that needs one by its label. Offer a suggestion for each so they can accept or change it, for example:
Placeholder text needed for these selects. Reply with your text, or "ok" to use the suggestions: - Environment: "Select an environment" - Region: "Select a region"Use the developer's text exactly as given. Do not write code with placeholder text the developer has not provided or accepted.
If you can't ask (for example, in a non-interactive run), use the suggestions and list them in your summary so the developer can review them.
Suggestions follow these rules:
- Start with "Select" and name the thing chosen, in sentence case: "Select a region", not "Select Region" or "Choose…"
- No trailing punctuation or ellipsis
- Don't repeat "(Optional)" or "*" from the label
- Never use the placeholder in place of a label
How it behaves
- The label renders as a
FormLabelabove the select and keeps its colour on focus and in the error state; the error shows on the field's border and in helper text. Focus shows only on the field: in the default theme, a text-colour border with a Cobalt ring, the same as fixed-label text fields. - The label names the combobox through
labelId(orhtmlForwithnative), so screen readers announce it. Do not add your ownaria-labelwhen a label is set. sx,className,style,fullWidthandrefapply to the outer wrapper that holds the label and the select.size,variant,required,erroranddisabledapply to both.placeholdershows text in the field while nothing is selected (an empty value:'',null,undefinedor[]), in the secondary text colour so it meets contrast requirements. It works with a customrenderValue. Native selects ignore it, so give them an empty option with the developer's placeholder text instead:<option value="">Select a role</option>.- Without a
label, the prop has no effect and the select renders as a plain MUISelect.
ComplexSelect: keep the label inside
ComplexSelect (rich options with icons, avatars and list headers, such as the organization and project switchers in Header.Switchers) follows a different rule from Select. Its label sits inside the field, above the selected value. This is the default labelAnchor, inside.
- Pass
labeland do not setlabelAnchor. The default isinside. - Do not use
labelAnchor="outside"orlabelAnchor="border"in new code. They are kept for existing screens only. When you edit aComplexSelectthat sets either, ask the developer before changing it, as the field's height change
Установить oxygen-select в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл oxygen-select?
Use the Oxygen UI Select with a fixed label above the field instead of MUI's floating label, and a placeholder the developer provides. Use ComplexSelect with its default inside label. Use when adding or editing any Select, ComplexSelect, dropdown, or picker built on Select, or when converting FormControl + InputLabel + Select code to fixed labels.
Как установить скилл oxygen-select?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл oxygen-select запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic