
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
moick-qwik-fixed
Advanced tools
For install the library, you can use the following command:
pnpm add @moick/qwik
Add <Toaster />
component to your app and use toast
function to configure the message or type of your toast.
import {Toaster, toast} from '@moick/qwik';
export default () => {
return (
<div>
<Toaster />
<button onClick$={() => toast('Hello World!')}>Toast</button>
</div>
)
}
The basic type of toast, with a simple message.
toast('My first toast')
Also you can use the description
property to add a description to your toast.
toast('toast', {
description: 'My first toast'
})
The success type of toast, with a checkmark icon in front of text.
toast.success('My first toast')
The error type of toast, with a error icon in front of text.
toast.error('My first toast')
You can update a toast using the toast
function with the same id.
const toastId = toast('My first toast')
toast('My first toast updated', {
id: toastId
})
You can customize the theme of your toasts using the theme
property.
<Toaster theme="system" />
You can customize the position of your toasts using the position
property. By default, the position is bottom-right
.
//available positions: top-left, top-center, top-right, bottom-left, bottom-center, bottom-right
<Toaster position="top-right"/>
You can customize the duration of your toasts using the duration
property. By default, the duration is 5000
.
<Toaster duration={10000}/>
//or
toast('My first toast', {
duration: 10000
})
You can add a close button to your toasts using the closeButton
property.
<Toaster closeButton />
You can activate de expand by default your toasts using the expanded
property. You can also use the visibleToasts
property to set the number of visible toasts wich is 3 by default.
<Toaster expanded visibleToasts={VisibleToast.five}/>
The succes and error types can be more colorful using the richColor
property.
<Toaster richColor />
You can style all toasts using the style
property in the <Toaster />
component.
<Toaster style={{borderRadius: '10px'}} />
You can style a specific toast using the style
property in the toast
function.
toast('My first toast', {
style: {borderRadius: '10px'}
})
You can customize the offset of your toasts using the offset
property. By default, the offset is 32px
.
<Toaster offset={50}/>
You can use Alt + T
to expand the toast. You can customize this shortcut using the hotKey
property.
<Toaster hotKey={['KeyA']}/>
FAQs
A versatile multi-package library for Toast notifications.
The npm package moick-qwik-fixed receives a total of 0 weekly downloads. As such, moick-qwik-fixed popularity was classified as not popular.
We found that moick-qwik-fixed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.