GithubHelp home page GithubHelp logo

egoist / snackbar Goto Github PK

View Code? Open in Web Editor NEW
254.0 4.0 18.0 3.38 MB

A tiny browser library for showing a brief message at the bottom of the screen (1kB gzipped).

Home Page: https://snackbar.egoist.dev

License: MIT License

TypeScript 79.48% JavaScript 0.82% CSS 19.70%
toast snackbar css lightweight framework-agnostic

snackbar's Introduction

@snackbar/core

NPM version NPM downloads CircleCI donate

preview

Install

yarn add @snackbar/core

Documentation

๐Ÿ“ https://snackbar.egoist.dev

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

snackbar ยฉ EGOIST, Released under the MIT License.
Authored and maintained by EGOIST with help from contributors (list).

egoist.dev ยท GitHub @EGOIST ยท Twitter @localhost_5173

snackbar's People

Contributors

dependabot-preview[bot] avatar egoist avatar hubgit avatar kaiwoods avatar nblthree avatar saltysugar avatar yaodingyd avatar ymkz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

snackbar's Issues

Documentation page links link to the wrong page

In the API documentation, the links in the sidebar redirect back to the home page with the hash in the URL.

Clicking "destroyAllSnackbars" redirects to https://snackbar.egoist.sh/index.html#destroyallsnackbars instead of https://snackbar.egoist.sh/docs#destroyallsnackbars

Lifecycle

Expose callback functions like onMounted, onDestroyed hooks etc.

Support themes

Issuehunt badges

By default Snackbar uses a dark theme, but it should be configureable:

createSnackbar({
  theme: 'light',
  // Or 
  theme: {
    backgroundColor: 'red',
    color: 'gray'
  }
})

IssueHunt Summary

[
<
i
m
g

s
r
c

'
h
t
t
p
s
:
/
/
a
v
a
t
a
r
s
2
.
g
i
t
h
u
b
u
s
e
r
c
o
n
t
e
n
t
.
c
o
m
/
u
/
8
7
8
4
7
1
2
?
v

4
'

a
l
t

'
e
g
o
i
s
t
'

w
i
d
t
h

2
4

h
e
i
g
h
t

2
4

e
g
o
i
s
t
]
(
h
t
t
p
s
:
/
/
i
s
s
u
e
h
u
n
t
.
i
o
/
u
/
e
g
o
i
s
t
)

h
a
s

b
e
e
n

r
e
w
a
r
d
e
d
.

Backers (Total: $100.00)

Submitted pull Requests


Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

Add multiline text support

Text in bar is rather short, would you please add support for multiline text like :

first line of text is rather short
here is the second line

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.