0.1.2 • Published 9 months ago

@brighthr/component-notes v0.1.2

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

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago

0.0.5

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.4

10 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

1 year ago