@brighthr/component-usernote
v0.2.2
Published
To install, type the following into the command line at the root of your project:
Readme
UserNote
Installation
To install, type the following into the command line at the root of your project:
npm i @brighthr/component-usernoteImport
Import into your file:
import UserNote from '@brighthr/component-usernote';Props
| Name | Type | Default | Description |
| -------------------- | ------------------------------------ | -------- | ----------------------------------------------- |
| noteText | string | | The text of the note |
| createdBy | string | | The name of the user who created the note |
| dateAdded | string | | The date the note was added |
| onDelete | () => void | | Callback function for when the note is deleted. |
| avatarHref | string | | The href for the user's avatar. |
| jobTitle | string | | The job title of the user who created the note. |
| isDeleteNoteDisabled | boolean | false | Whether the delete button should be disabled. |
