Skip to content
Documentation
Documentation

Customizing Actions

By default, the toolbar shows (left to right): Support → Thumbs Down → Thumbs Up → Voice

The rightmost action is visually closest to the trigger button.

The actions array determines toolbar order. List them in the order you want, left to right:

<MusProvider
config={{
projectName: 'My App',
slack: { ... },
actions: [
{ type: 'support' },
{ type: 'thumbs-down' },
{ type: 'thumbs-up' },
{ type: 'voice' }, // rightmost, closest to trigger
],
}}
>

Simply omit any action you don’t want. For example, thumbs only:

actions: [
{ type: 'thumbs-up' },
{ type: 'thumbs-down' },
]

Or voice and support only, no thumbs:

actions: [
{ type: 'support' },
{ type: 'voice' },
]

Override the tooltip text shown on hover:

actions: [
{ type: 'voice', label: 'Record feedback' },
{ type: 'support', label: 'Contact us' },
{ type: 'thumbs-up', label: 'This is helpful' },
{ type: 'thumbs-down', label: 'Needs improvement' },
]

Each FeedbackTarget can override the provider-level actions:

<FeedbackTarget
sectionId="hero"
sectionName="Hero Banner"
actions={[
{ type: 'thumbs-up', label: 'Love it' },
{ type: 'thumbs-down', label: 'Not my thing' },
]}
>
<Hero />
</FeedbackTarget>

This section shows only the two thumbs. The voice and support actions from the provider are not shown here.

The video action shows an overview video. It requires a videoUrl on FeedbackTarget:

<MusProvider
config={{
...
actions: [
{ type: 'video' },
{ type: 'voice' },
{ type: 'thumbs-up' },
],
}}
>
<FeedbackTarget
sectionId="onboarding"
sectionName="Onboarding"
videoUrl="/videos/onboarding-overview.mp4"
>
<OnboardingFlow />
</FeedbackTarget>
</MusProvider>