컴포넌트
Shape
@m3e/shape · MOGA 공식
Any of the M3 Expressive shapes, morphing between two of them; filled, outlined or a ring, and stretched into a bar with round ends.
npx motioncn-cli add m3e/shape버전 0.0.1MIT다운로드 3회즐겨찾기 0
2026년 12월 5일 업데이트
MOGA에서 사용
MOGA 라이브러리의 '온라인'에서 검색하거나 프로젝트 폴더에서 다음을 실행하세요:
npx -y moga hub-import @m3e/shapeMOGA 밖에서 사용 (Motioncn)
무료이고 계정이 필요 없습니다. 일반 웹 코드라서 웹 페이지, React, Remotion, HyperFrames에서 재생되며 MOGA와 같은 프레임을 그립니다.
shadcn으로 프로젝트에 추가
npx shadcn@latest add https://motioncn.dev/r/m3e/shape.jsonshadcn 설정 없이도 됩니다
npx motioncn-cli add m3e/shape빌드 없이 페이지에서 import
import Shape from 'https://motioncn.dev/m/m3e/shape.js';
import preset from 'https://motioncn.dev/m/theme.js';
Shape.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();React, Remotion, HyperFrames
// React (https://motioncn.dev/r/player-react.json)
<Motion motion={Shape} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={Shape} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(Shape.mount(element, { preset, duration: 5 }), { start: 0 });
