New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sample-conan-modal

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sample-conan-modal

간단한 모달 라이브러리

latest
Source
npmnpm
Version
0.3.1
Version published
Maintainers
1
Created
Source

MyModal 모달 라이브러리

간단한 모달을 구현할 수 있는 라이브러리입니다.

설치 방법

npm install sample-conan-modal

사용 방법

MyModal 컴포넌트 불러오기

import MyModal from 'sample-conan-modal';

MyModal 사용하기

<MyModal trigger={<button>모달 열기</button>}>
  <h2>제목</h2>
  <p>내용</p>
</MyModal>

Props

trigger: 모달을 열기 위한 요소. React element 형태로 전달합니다. children: 모달 내부에 들어갈 컨텐츠입니다.

Props 예시

import MyModal from 'sample-conan-modal';

function App() {
  return (
    <div>
      <MyModal trigger={<button>모달 열기</button>}>
        <h2>제목</h2>
        <p>내용</p>
      </MyModal>
    </div>
  );
}

export default App;

Keywords

react

FAQs

Package last updated on 02 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts