Skip to main content

fig-editor

Guides FigUI3 editor bundle (`fig-editor.js` / `fig-editor.css`): fig-select, fig-select-options, fig-select-option, fig-fill-picker, and fig-interpolation-swatch, including React JSX usage. Use when building custom selects, grouped option lists, sticky separators, ghost selects, fill picker dialogs, or interpolation swatches. Requires fig.js.

소스 정보

저장소
rogie/figui3
최근 소스 활동
2026년 10월 2일 18:16
감지된 SKILL.md 언어
영어
스타
66
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
3 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
fig-editor
description
Guides FigUI3 editor bundle (`fig-editor.js` / `fig-editor.css`): fig-select, fig-select-options, fig-select-option, fig-fill-picker, and fig-interpolation-swatch, including React JSX usage. Use when building custom selects, grouped option lists, sticky separators, ghost selects, fill picker dialogs, or interpolation swatches. Requires fig.js.
user-invocable
false
# FigUI3 editor (`fig-editor.js`) Custom select and full fill-picker. Not in core `fig.js`. React: [../figui3/react.md](../figui3/react.md). Per-tag JSX: [components.md](components.md). Attrs: [reference.md](reference.md). ## Install ```js import "@rogieking/figui3/fig.css"; import "@rogieking/figui3/fig.js"; import "@rogieking/figui3/fig-editor.css"; import "@rogieking/figui3/fig-editor.js"; ``` `fig-editor.js` imports `fig.js` and `fig-lab.js`. Still import `fig-editor.css`. Import `fig-lab.css` if lab visuals are needed. Registered tags: | Tag | Role | |---|---| | `fig-select` | Trigger + popup listbox (`subtle` applies to all options) | | `fig-select-options` | Scrollable panel (`slot="panel"`), overflow chevrons | | `fig-select-option` | Option (`value`, `label`, `selected`, `disabled`, `subtle`) | | `fig-fill-picker` | Full fill editor dialog (solid, gradient, image, video, webcam, custom modes) | | `fig-interpolation-swatch` | Gradient interpolation preview swatch | - `fig-dropdown` (core): native `<select>`. - `fig-select` (this skill): custom listbox. Use this for Figma-style menus. Author options as React children, or pass `options`. Set `menu-anchor` to a selector or assign an element to `menuAnchor` when the menu should align against another element. Do not `stopPropagation` on option click. `optionhover` and `optionfocus` are native preview listeners. ## Fill picker Core `fig-input-color` / `fig-input-fill` auto-open the picker when registered. Custom modes: `slot="mode-<name>"` on `fig-input-fill`, or React `modeready` → mount into `e.detail.container` (do not reparent). Do not use `picker` or `picker-anchor` on `fig-input-color`. Forward picker chrome with `picker-*`. ## Maintainer notes - Implementation: `fig-editor.js`, styles: `fig-editor.css` - Do not move fill-picker or select into `fig.js` - Nested overlay positioning: keep `popover="manual"` on the select popup - Tests: `tests/figui/component-contracts.spec.ts` (ghost variant, sticky separator vs overflow-start)
GitHub에서 보기