Snackbar

  • Web
  • Native

Usage

Simple

import { Button, Snackbar } from '@gympass/yoga';

Variants

The Snackbar has styles variants. Their are success, failure and info.

import { Box, Button, Snackbar } from '@gympass/yoga';

Close automaticaly

The Snackbar has the ability to close itself automaticaly. To do it, you must provide onClose and duration props.

import { Button, Snackbar } from '@gympass/yoga';

Action

The Snackbar may have an action to do anything you need. To do it, you must provide onAction and actionLabel props.

import { Button, Snackbar } from '@gympass/yoga';

Props

PropDescriptionTypeDefaultRequired
Made with ❤️ by Gympass • github