GoldTreeDevGTD UI

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

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

ApplePlayButton

New

재생과 일시 정지 상태를 아이콘으로 전환하는 버튼이에요.

사용법

누르면 재생과 일시 정지 상태가 부드럽게 전환돼요.

인터페이스

ApplePlayButtonProps

속성타입기본값설명
playingboolean제어 재생 상태
defaultPlayingbooleanfalse초기 재생 상태
onPlayingChange(playing: boolean) => void재생 상태 변경 콜백
playIcon*ReactNode재생 아이콘
pauseIcon*ReactNode일시 정지 아이콘
playLabelstring재생재생 접근성 라벨
pauseLabelstring일시 정지일시 정지 접근성 라벨
classNamestring루트 클래스
styleCSSProperties인라인 스타일·CSS 변수

ApplePlayButton 컴포넌트 Props 표

가져오기

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

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

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