beam-glow-states
하는 일
이 스킬은 빔 테두리 패키지를 써서 React 앱의 일부에 천천히 흐르거나 숨 쉬듯 빛나는 효과를 더하도록 AI 에이전트를 안내합니다. 시각 요소를 많이 쓰지 않고 분명한 상태 신호를 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓버튼이나 카드가 로딩 중, 선택됨, 처리 중임을 보여 줘야 할 때.
- ✓입력창, 탭, 옵션에 분명한 포커스나 현재 상태를 나타내는 빛이 필요할 때.
- ✓AI 에이전트의 작업 패널에 절제된 움직임 강조가 필요한 경우.
스킬 링크
https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/beam-glow-states/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 React 대시보드에서 처리 중인 카드 주위에 은은하게 움직이는 빛 테두리를 추가해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 패키지를 설치하고 빔 컴포넌트로 요소를 감싸며, 크기와 상태를 고릅니다. 애니메이션은 끌 수 있으므로, 상태는 여전히 글과 모양만으로도 알 수 있어야 합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Beam Glow States
Use the beam as a decorative state accent. Keep the state understandable through text, shape, contrast, and the correct semantic attribute when the animation is absent.
The API below was verified against border-beam 1.3.0. Recheck the official README and exported types when the installed version changes.
Install and import
Install the same package with the repository's package manager:
npm install border-beam
pnpm add border-beam
yarn add border-beam
bun add border-beam
The package requires React and React DOM 18 or newer. It ships ESM, CommonJS, and TypeScript declarations. It injects component-scoped styles, so do not import a separate CSS file.
Prefer the named import:
import { BorderBeam } from "border-beam";
import type {
BorderBeamProps,
BorderBeamSize,
BorderBeamTheme,
BorderBeamColorVariant,
} from "border-beam";
The default component export is also supported:
import BorderBeam from "border-beam";
In a Next.js App Router project, render it from a client component because it uses React state, effects, observers, and animation frames:
"use client";
import { BorderBeam } from "border-beam";
Choose the effect
size |
Motion | Best use |
|---|---|---|
sm |
Compact traveling border | Icon buttons, pills, compact controls |
md |
Full traveling border | Selected cards, current panels, primary active surfaces |
line |
Traveling bottom edge | Search, prompt, input, progress, or command surfaces |
pulse-inner |
Contained breathing glow | Loading cards, processing panels, persistent selected states |
pulse-outside |
Outward breathing halo | One prominent active task or hero control with room to bloom |
Use these defaults by state:
- Loading or processing:
pulse-inner,strength={0.55}to0.75,duration={2.3}to3. - Selected or current:
mdorpulse-inner,strength={0.3}to0.55,duration={3.2}to5. - Focus or short active feedback:
smorline,strength={0.35}to0.6. - High-priority live task:
pulse-outside,strength={0.45}to0.7; allow only one in a view.
Start with colorVariant="mono" for neutral product UI, ocean for cool technical states, sunset for warm urgency, and colorful for a rare high-salience moment.
Start with one mounted wrapper
Keep BorderBeam mounted and toggle active. Removing it when state becomes false skips the built-in fade-out.
<BorderBeam
size="pulse-inner"
colorVariant="ocean"
theme="dark"
strength={0.65}
active={isWorking}
>
<section className="task-card" aria-busy={isWorking}>
<p>{isWorking ? "Generating layout options…" : "Layout options ready"}</p>
</section>
</BorderBeam>
active fades in over 0.6s and fades out over 0.5s. Use onActivate and onDeactivate only when work must align with the completed visual transition.
Wire loading state
Make the loading state truthful before adding the beam:
<BorderBeam
size="pulse-inner"
colorVariant="ocean"
strength={0.65}
active={pending && !reduceMotion}
onDeactivate={() => {
// Optional: advance only after the 0.5s beam exit completes.
}}
>
<section className="beam-surface" aria-busy={pending}>
<span className="status-dot" aria-hidden="true" />
<span>{pending ? "Building preview…" : "Preview ready"}</span>
</section>
</BorderBeam>
- Show a visible status label or progress value; never make the moving edge the only loading cue.
- Avoid showing the beam for operations that finish in roughly
150msor less. - Once shown, keep the loading presentation visible for about
400msto600msto prevent a flash. - Preserve layout between pending and complete states.
- Keep cancellation, retry, and error controls usable. The effect layers already use
pointer-events: none.
Use line when the work belongs to one input or prompt bar. Use pulse-inner when the whole card is busy.
Wire selected or current state
Use the component state and the semantic state together:
<BorderBeam
size="md"
colorVariant="mono"
staticColors
duration={4.2}
strength={0.42}
active={selected && !reduceMotion}
className="beam-card"
>
<button
type="button"
className="beam-surface"
aria-pressed={selected}
onClick={onSelect}
>
{label}
</button>
</BorderBeam>
- Use
aria-selectedfor tabs, listbox options, grid cells, and similar selection widgets. - Use
aria-currentfor
자주 묻는 질문
별도의 스타일시트를 가져와야 하나요?
아닙니다. 패키지가 자체 스타일을 넣으므로 컴포넌트 가져오기만 필요합니다.
React 밖에서도 쓸 수 있나요?
이 스킬은 React와 Next.js 프로젝트를 위해 작성되었습니다.
움직임을 줄이고 싶은 방문자는 어떻게 하나요?
모션 줄이기와 접근성 안내가 포함되어 있어, 애니메이션 없이도 상태를 이해할 수 있습니다.
상세 정보
작성자의 원본 설명
Create React loading, processing, selected, current, focus, and pressed states with the border-beam package's animated edge glow. Use when a card, button, input, tab, option, task panel, or agent surface needs a restrained traveling or breathing beam; includes installation, imports, prop selection, state wiring, reduced motion, accessibility, and performance and layout guardrails.
repo: MengTo/Skills
인기도
- GitHub 스타
- 7.2k
- 순위
- #13400
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
3d-cloth-material
7.2k에이전트가 Three.js에서 실 짜임, 부드러운 광택, 자연스러운 주름, 단, 솔기를 갖춘 실제 직물처럼 보이는 천을 만들도록 돕습니다.
3d-falling-leaves
7.2k에이전트가 3D 장면에 나뭇잎이 구르고 바람에 흩날리며 카메라 움직임에 따라 재사용되는 낙엽 효과를 추가하도록 돕습니다.
3d-four-seasons
7.2k에이전트가 3D 장면의 나무, 빛, 하늘, 눈을 바꿔 장면을 다시 만들지 않고 봄, 여름, 가을, 겨울을 표현하도록 돕습니다.
3d-high-poly-models
7.2k에이전트가 매끄러운 형태와 자연스러운 모서리를 가진 세밀한 3D 모델을 만들고, 웹에서 잘 돌아가는 가벼운 버전을 준비하도록 돕습니다.
비슷한 스킬
angular-developer
280k에이전트가 Angular 코드를 만들고 프로젝트 구조를 조언하도록 돕습니다. 새 프로젝트 시작, 코드 부분 생성, 성능과 접근성 개선에 유용합니다.
frontend-a11y
280k모든 사람이 웹 인터페이스를 쓸 수 있도록 에이전트를 돕습니다. 웹사이트와 앱이 화면 읽기 프로그램과 키보드 탐색에서 잘 작동하도록 합니다.
frontend-patterns
280k프론트엔드 개발의 현대적인 패턴을 적용하도록 에이전트를 돕습니다. React와 Next.js에서 성능을 최적화하고, 상태를 관리하며, 모범 사례를 따릅니다.