1.0.0-preview.1 • Published 5 years ago

@gfsdeliver/gfs-toast v1.0.0-preview.1

Weekly downloads
5
License
Apache-2.0
Repository
-
Last release
5 years ago

Introduction

gfs-toast provides a subtle notification toast.

Properties

NameDescriptionDefault
textthe text to display in the toastempty
horizontal-alignThe orientation against which to align the dropdown content horizontallyleft
vertical-alignThe orientation against which to align the dropdown content verticallybottom
durationThe duration in milliseconds to show the toast. Set to 0 to disable auto closing3500

Methods

NameDescription
showopen the toast
hideclose the toast
openopen the toast (iron-overlay-behavior)
closeclose the toast (iron-overlay-behavior)

Attributes

Use the following attributes for ready stylish toast notifications

NameDescription
infoadds a class name with fixed styles
successadds a class name with fixed styles
warningadds a class name with fixed styles
erroradds a class name with fixed styles

Classes

NameDescription
fit-topsets the toast on the top of the screen with full width
fit-bottomsets the toast on the bottom of the screen with full width

Styling

NameDescriptionDefault
--gfs-toast-colortoast text colorvar(--white-color)
--gfs-toast-backgroundtoast background colorvar(--gfs-default-color)
--gfs-toast-margintoast margin0 5px 0 0
--gfs-toast-font-sizetoast font size14px
--gfs-toast-font-familytoast font family"Segoe UI", 'Helvetica Neue'
--gfs-toast-font-weighttoast font weightnormal
--gfs-toast-text-transformtoast text transformationnormal
--gfs-toast-border-radiustoast border radius corners3px
--gfs-toast-box-shadowtoast box shadow effect0 2px 5px 0 rgba(0, 0, 0, 0.26)