0.2.0 • Published 8 months ago
@brighthr/component-usernote v0.2.0
UserNote
Installation
To install, type the following into the command line at the root of your project:
npm i @brighthr/component-usernote
Import
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. |