1.0.1 • Published 1 year ago

@fabiochiquezi/loading-hoc v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

🤙 PopSave

Simple VanillaUI Component to fire a message to the user that has a process being save.

🚀 Getting Started

import { usePopSave } from '@fabiochiquezi/pop-save'
const popSave = usePopSave()

<!-- Display -->
popSave.open(
  message?: string,
  delay?: number,
  spin?: { color: string, width: number, height: number }
)

<!-- Remove-->
popSave.close()

<!-- Customize -->
const options = {
  id?: string,
  className?: string,
  animationRemove?: string,
  animationAdd?: string,
  animationDuration?: number,
  backgroundColor?: string,
  color?: string
}

const popSave = usePopSave(options)

📡 Installing

Component:

yarn add @fabiochiquezi/pop-save

import { usePopSave } from '@fabiochiquezi/pop-save'
@import "@fabiochiquezi/pop-save/styles.css"

Project:

git clone https://github.com/fabiochiquezi/Chz-Component-PopSave.git
cd Chz-Component-PopSave
yarn install
yarn dev

✋ Author