0.1.2 • Published 2 years ago

@brighthr/component-notes v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Notes

Installation

To install, type the following into the command line at the root of your project:

npm i @brighthr/component-notes

Import

Import into your file:

import Notes from '@brighthr/component-notes';

Props

NameTypeDefaultDescription
userNamestring | User name for the Avatar
descriptionstring | Description for adding the notes
placeholderstring | Placeholder text for the text area
valuestring | Value of the text area
onChange(event: React.ChangeEvent<HTMLTextAreaElement>) => void | Function to handle the text area change
onNoteDismiss() => voidFunction to handle the note dismiss
onNoteSave() => void | Function to handle the note save
maxLengthnumberMaximum length of the note
isSaveButtonDisabledbooleanDisables the save button
donutEnabledbooleanfalseEnables the percentage donut for character count
charCountEnabledbooleanfalseEnables the character count
avatarHrefstringAvatar image path
0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago