3.1.2 • Published 2 years ago

bpk-component-floating-notification v3.1.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

bpk-component-floating-notification

Installation

npm install bpk-component-floating-notification --save-dev

Usage

import React from 'react';
import BpkFloatingNotification from 'bpk-component-floating-notification';
import BpkIconHeart from '../../packages/bpk-component-icon/sm/heart';

export default () => (
  <BpkFloatingNotification
    ctaText="View"
    icon={BpkIconHeart}
    onClick={() => {}}
    text="Killer Combo saved to New York and Miami 🎉"
  />
);

Props

PropertyPropTypeRequiredDefault Value
animateOnEnterboolfalsetrue
animateOnExitboolfalsetrue
classNamestringfalsenull
ctaTextstringfalsenull
hideAfternumberfalse4000
iconReactElementfalsenull
onClickfuncfalsenull
onExitfuncfalsenull
textstringtrue-

Prop Details

hideAfter

This prop controls the amount of time that the notification stays visible before the exit animation begins.

The default value is 4 seconds (4000 milliseconds).

onExit

Execute a function after the component has finished the exit animation.

3.1.2

2 years ago

3.1.1

2 years ago

3.0.2

2 years ago

3.1.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago