@quenty/snackbar

11.4.1 • Public • Published

Snackbar

Snackbars provide lightweight feedback on an operation at the base of the screen. They automatically disappear after a timeout or user interaction. There can only be one on the screen at a time.

Installation

npm install @quenty/snackbar --save

Usage

Using the snackbar should be done via the SnackbarManager, which ensures only one snackbar can be visible at a time.

local snackbarServiceClient = serviceBag:GetService(SnackbarServiceClient)

snackbarServiceClient:ShowSnackbar("Settings saved!", {
  CallToAction = {
    Text = "Undo";
    OnClick = function()
      print("Activated action")
    end;
  }
})

Package Sidebar

Install

npm i @quenty/snackbar

Weekly Downloads

47

Version

11.4.1

License

MIT

Unpacked Size

32.2 kB

Total Files

15

Last publish

Collaborators

  • quenty