Components
Classes
Types
No results found.
If this is a bug, please report it.
Scroll
Open
Sometimes we miss things. We rely on user feedback to tell us how we're doing.
Snackbars are essentially rich toasts. In other words, they're long, horizontally-oriented cards that communicate short information that can either be actionable or not.
<Snackbar
message="Styled with className and onClick!"
className="custom-snackbar"
onClick={() => alert("Snackbar clicked")}
style={{ cursor: "pointer" }}
/>
Note: Other React frameworks are not currently supported, but they might still work. Try at your own risk.
Method | Instructions |
---|---|
LiftKit CLI |
From any Next.js project, run the following command in your terminal.
npm run add snackbar
content_copy
|
Github | open_in_new View on Github |
Method | Instructions |
---|---|
Webflow | open_in_new Clone from Made In Webflow |
Figma | open_in_new Clone from Figma Community |
Props unique to this component.
Name | Required | Type | Description | Default Val |
---|---|---|---|---|
cardProps | no | LkCardProps | Optional props to pass to the underlying card component | undefined |
globalColor | no | LkColorWithOnToken | Sets the background and text color using a global color token | undefined |
message | no | string | The plain-text content of the snackbar | undefined |
Props with globally-defined behavior that are used in multiple components.
Common Props | Status |
---|---|
{children} | Supported |
Native HTML attributes | Supported |