Skip to content

Custom feedback types #51

Answered by BetaHuhn
justoverclockl asked this question in Ideas
Jun 27, 2021 · 2 comments · 8 replies
Discussion options

You must be logged in to vote

Added in v2.0.0 🎉

Use the types option like this:

import Feedback from '@betahuhn/feedback-js'

const options = {
    endpoint: 'https://example.com/feedback',
    types: {
        general: {
            text: 'General Feedback',
            icon: '⚠️'
        },
        idea: {
            text: 'I have an idea',
            icon: '💡'
        },
        love: {
            text: 'Send love',
            icon: '💖'
        }
    }
}

new Feedback(options).renderButton()

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@BetaHuhn
Comment options

@justoverclockl
Comment options

@BetaHuhn
Comment options

@justoverclockl
Comment options

@BetaHuhn
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by BetaHuhn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants