To install, type the following into the command line at the root of your project:
npm install @brighthr/component-notesTo install, type the following into the command line at the root of your project:
``javascript`
npm i @brighthr/component-notes
Import into your file:
`javascript`
import Notes from '@brighthr/component-notes';
| Name | Type | Default | Description |
| -------------------- | --------------------------------------------------------- | ------- | ------------------------------------------------ |
| userName | string | | User name for the Avatar |string
| description | | | Description for adding the notes |string
| placeholder | | | Placeholder text for the text area |string
| value | | | Value of the text area |(event: React.ChangeEvent
| onChange | | | Function to handle the text area change |() => void
| onNoteDismiss | | | Function to handle the note dismiss |() => void
| onNoteSave | | | Function to handle the note save |number
| maxLength | | | Maximum length of the note |boolean
| isSaveButtonDisabled | | | Disables the save button |boolean
| donutEnabled | | false | Enables the percentage donut for character count |boolean
| charCountEnabled | | false | Enables the character count |string` | | Avatar image path |
| avatarHref |