1.0.31 • Published 7 months ago

@kinxcdn/commerce-player v1.0.31

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

midibus commerce 플레이어 컴포넌트

미디버스 커머스 플레이어

Installation

npm i @kinxcdn/commerce-player

# 또는

yarn add @kinxcdn/commerce-player

Usage

WidgetPlayer

Props

Prop타입기본값설명
collectionIdstring불러올 미디어 컬렉션의 고유 ID
isPreviewstringfalse프리뷰 모드 렌더링 여부 (true/false)
iconFormstringINSTA | YOUTUBE아이콘 형태
iconShapestringMANY | ONE아이콘 레이아웃
iconSizestring120아이콘 크기(px)
borderLinestringALWAYS아이콘 테두리 유무
exposeTitlestringtrue컬렉션 제목 노출 여부 (true/false)
playerstringPOPUP | INLINE위젯 플레이어 유형
roundedstringtrue아이콘 모서리 둥글기 여부 (true/false)
titlePositionstringBOTTOM | TOP제목 위치 (BOTTOM/TOP)

사용 예시

  • React
import WidgetPlayer from '@kinxcdn/commerce-player';

<WidgetPlayer
  collectionId="abc123"
  iconForm="YOUTUBE"
  iconShape="MANY"
  iconSize={80}
  borderLine="ALWAYS"
  exposeTitle={true}
  player="POPUP"
  rounded={false}
  titlePosition="inner"
/>
  • JS
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0"
    />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>WidgetPlayer 예제</title>
    <!-- CDN에서 commerce-player 로더 불러오기 -->
    <script src="https://unpkg.com/@kinxcdn/commerce-player/dist/commerce-player.min.js"></script>
  </head>
  <body>
    <div style="height: 600px; width: 100%;">
      <!-- 최소 설정: collectionId만 -->
      <mc-widget-player
        collectionId="6j7d3T4OG"
      ></mc-widget-player>

      <!-- 모든 옵션 설정 예시 -->
      <mc-widget-player
        collectionId="6j7d3T4OG"
        isPreview="true"
        iconForm="YOUTUBE"
        iconShape="ONE"
        iconSize="80"
        borderLine="NIGHT"
        exposeTitle="false"
        player="INLINE"
        rounded="false"
        titlePosition="TOP"
      ></mc-widget-player>
    </div>
  </body>
</html>
1.0.31

7 months ago

1.0.30

7 months ago

1.0.29

7 months ago

1.0.28

8 months ago

1.0.27

8 months ago

1.0.26

8 months ago

1.0.25

8 months ago

1.0.24

8 months ago

1.0.23

8 months ago

1.0.22

8 months ago

1.0.21

8 months ago

1.0.20

8 months ago

1.0.19

8 months ago

1.0.18

8 months ago

1.0.17

8 months ago

1.0.16

8 months ago

1.0.15

8 months ago

1.0.14

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago