0.1.2 • Published 8 months ago

@brighthr/component-notes v0.1.2

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

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago

0.0.5

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.4

9 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

12 months ago