evalstate/fast-agent / design/fast-agent-system
fast-agent-design
UnverifiedUse this skill to generate well-branded interfaces and assets for fast-agent, either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for protoyping.
components/forms/Select.jsx
View on GitHubimport React from 'react';
export function Select({ label, options = [], value, onChange, disabled = false, id, style }) {
const [focused, setFocused] = React.useState(false);
const iid = id || React.useId();
return <div style={{ fontFamily: 'var(--font-read)', color: 'var(--petrol)', ...style }}>
{label && <label htmlFor={iid} style={{ display: 'block', fontSize: 11, fontWeight: 800, letterSpacing: 'var(--track-label)', textTransform: 'uppercase', marginBottom: 6, color: 'var(--petrol)' }}>{label}</label>}
<div style={{ position: 'relative' }}>
<select id={iid} value={value} onChange={onChange} disabled={disabled} onFocus={() => setFocused(true)} onBlur={() => setFocused(false)}
style={{ appearance: 'none', WebkitAppearance: 'none', width: '100%', boxSizing: 'border-box', fontFamily: 'var(--font-read)', fontSize: 15, fontWeight: 600, color: 'var(--petrol)', background: disabled ? 'var(--ivory-deep)' : 'var(--paper)', border: 'var(--border)', borderRadius: 'var(--radius-sm)', padding: '10px 36px 10px 12px', cursor: disabled ? 'not-allowed' : 'pointer', outline: focused ? '3px solid var(--focus-ring)' : 'none', outlineOffset: 2, opacity: disabled ? 0.6 : 1 }}>
{options.map(o => typeof o === 'string' ? <option key={o} value={o}>{o}</option> : <option key={o.value} value={o.value}>{o.label}</option>)}
</select>
<span aria-hidden="true" style={{ position: 'absolute', right: 12, top: '50%', transform: 'translateY(-50%) rotate(90deg)', fontFamily: 'var(--font-code)', fontSize: 13, pointerEvents: 'none' }}>❯</span>
</div>
</div>;
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |