1.0.31 • Published 6 months ago

@kinxcdn/commerce-player v1.0.31

Weekly downloads
-
License
MIT
Repository
-
Last release
6 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

6 months ago

1.0.30

6 months ago

1.0.29

6 months ago

1.0.28

7 months ago

1.0.27

7 months ago

1.0.26

7 months ago

1.0.25

7 months ago

1.0.24

7 months ago

1.0.23

7 months ago

1.0.22

7 months ago

1.0.21

7 months ago

1.0.20

7 months ago

1.0.19

7 months ago

1.0.18

7 months ago

1.0.17

7 months ago

1.0.16

7 months ago

1.0.15

7 months ago

1.0.14

7 months ago

1.0.13

7 months ago

1.0.12

7 months ago

1.0.11

7 months ago

1.0.10

7 months ago

1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago