0.0.37 • Published 4 years ago

@numl-react/contextual-savebar v0.0.37

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@numl-react/contextual-savebar

Introduction

The contextual savebar can be used to indicate users, that they have unsaved changes that needs to be saved or discarded.

Installation

yarn add @numl-react/contextual-savebar
# or
npm i @numl-react/contextual-savebar

Import Components

import { ContextualSaveBar } from '@numl-react/organisms';
// or
import { ContextualSaveBar } from '@numl-react/contextual-savebar';

Component

<ContextualSaveBar
  message="Unsaved Changes"
  button={[
    <>
      <Button.Small>Discard</Button.Small>
      <Button.Small theme="special">Save</Button.Small>
    </>,
  ]}
/>

Usage

WIP

References

WIP