Help Desk

Your user's are having hard time to ask questions? help desk is here to help you, plug in the form and grow those numbers.

Examples

Basic usage of the help desk component.

Note: enable one form at a time the last one holds the preference.

Look at the right side of the screen to see the help desk.

How can we help you?

Send us a message and we'll get back to you as soon as possible.

Help desk when we have an error.

Look at the right side of the screen to see the help desk.

Customized help desk.

Look at the right side of the screen to see the help desk.

Installation

npx shadcn@latest add "https://aetherui.in/c/help-desk.json"

Component Props

You can use the HelpDesk component by passing the following props to it.

HelpDeskProvider Props

PropTypeDefaultDescription
childrenReactNodeContent to be displayed inside the help desk.
defaultOpenboolean (Optional)falseInitial open state of the help desk.
openboolean (Optional)falseControl the open state (controlled mode).
onOpenChangefunction (Optional)Callback function to be called open state changes.
status'idle' | 'submitting' | 'success' | 'error'idleStatus of the help desk.
onSubmitfunction (Optional)Callback function to be called when the submit button is clicked.
...propsanyAdditional props to be passed to the help desk.

HelpDesk Props

PropTypeDefaultDescription
childrenReactNodeContent to be displayed inside the help desk.
titlestring (Optional)Query(title)Title to be displayed in the help desk.
subtitlestring (Optional)Query(subtitle)Subtitle to be displayed in the help desk.
classNamestringAdditional class names to be applied to the help desk.
...propsanyAdditional props to be passed to the help desk.

HelpDeskFomr Props

PropTypeDefaultDescription
classNamestringAdditional class names to be applied to the help desk form.
btnClassNamestringAdditional class names to be applied to the help desk form submit button.
...propsanyAdditional props to be passed to the help desk form.

HelpDeskButton Props

PropTypeDefaultDescription
classNamestringAdditional class names to be applied to the help desk button.
...propsanyAdditional props to be passed to the help desk button.