Skip to content

安裝

v0.3.11 · Latest stable

SoDialog 核心包沒有執行時必需依賴。安裝後,請明確匯入 ESM API 與樣式。

bash
npm install sodialog
pnpm add sodialog
yarn add sodialog
bun add sodialog

ESM

ts
import { openModal, pushMessage } from 'sodialog'
import 'sodialog/style.css'

openModal({
  title: 'Hello',
  content: '<p>Your dialog is ready.</p>',
})

pushMessage('success', '已儲存')

Released under the MIT License.