GoldTreeDevGTD UI

문서 제목, 아이콘 이름, 앱 이름으로 검색할 수 있어요.

전체 문서 보기 이동 · Enter 열기 · Esc 닫기

MusicToggleButton

New

음악 재생과 음소거 상태를 전환하는 모션 버튼이에요.

사용법

음악 상태를 켜고 끄면 아이콘과 이퀄라이저가 함께 반응해요.

인터페이스

MusicToggleButtonProps

속성타입기본값설명
playingboolean제어 재생 상태
defaultPlayingbooleanfalse초기 재생 상태
onPlayingChange(playing: boolean) => void재생 상태 변경 콜백
playingIcon*ReactNode재생 중 아이콘
mutedIcon*ReactNode음소거 아이콘
playLabelstring음악 재생재생 접근성 라벨
muteLabelstring음악 끄기음소거 접근성 라벨
classNamestring루트 클래스
styleCSSProperties인라인 스타일·CSS 변수

MusicToggleButton 컴포넌트 Props 표

가져오기

모션 CSS는 @goldtreedev/ui/motion.css를 함께 import해요.

@import "@goldtreedev/ui/motion.css";

import { MusicToggleButton } from "@goldtreedev/ui";
MusicToggleButton · 모션 UI | GoldTreeDev Docs