0.1.2 • Published 10 months ago

@brighthr/component-notes v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months 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

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago

0.0.5

11 months ago

0.0.7

10 months ago

0.0.6

11 months ago

0.0.4

11 months ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago