1.0.0-beta.0 • Published 1 year ago

@ryze-digital/dialog v1.0.0-beta.0

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
1 year ago

RYZE Digital Dialog

Run linter(s) workflow status

Install

npm i @ryze-digital/dialog

Usage

Scss

@use "@ryze-digital/dialog";

Use the provided configure mixin to define your dialog defaults. A complete list of all possible configurations can be found in /src/styles/_config.scss.

@include dialog.configure(...);

Add familiar styles to get a typical dialog look using base mixin. Use the clone-modal-style mixin to make the modal dialog look the same as the non-modal.

dialog {
    @include dialog.base();
    @include dialog.clone-modal-style();
}

JavaScript

import { Dialog } from '@ryze-digital/dialog';
new Dialog({...}).init();

Demos

Checkout this repository and use the /demos folder as document root to see a running demo in the browser.

1.0.0-beta.0

1 year ago