This v0.3 release brings overall refinements, small tweaks and new UI configurations for the builtin components.
You can read the full announcement on the Feelback blog.
Highlights
- feat: new
evaluation
preset - feat: new email field for message-based components
- feat: new layout
reveal-message
for tagged-message feelback - feat: new builtin styles
TaggedMessage improvements
New preset
A new evaluation preset is available. It defines four values — love, happy, sad, hate — usually mapped to face emojis:
New layouts
This release introduces three new layout for the TaggedMessage.
-
radio-group
The tags (or categories) can be displayed as a set of radio the user can easily pick
You can specify both a title and an optional description, with will be places as subtitle for each option.
At the moment, an icon is not supported.
-
reveal-message
The tags are displayed as reaction emojis.
After the user selects one of them, a textarea with an optional message appears.
New Email field
Now it's possible to include an email filed into the form.
// one
<FeelbackTaggedMessage contentSetId="$content-set-id-from-panel"
preset={PRESET_EVALUATION}
withEmail="optional"
/>
The email field will be placed after the text message. The email can be optional
or required
.
The email will be sent as Feelback metadata, identifying the user.
New builtin styles
You can now customize the appearance with some builtin styles. You use the style
prop of the component:
// one
<FeelbackTaggedMessage contentSetId="$content-set-id-from-panel"
preset={PRESET_EVALUATION}
layout="reveal-message"
style="bordered"
title="Was this page useful?"
placeholder="(optional) Type your feedback"
/>
// or multiple
<FeelbackTaggedMessage contentSetId="$content-set-id-from-panel"
preset={PRESET_EVALUATION}
layout="reveal-message"
style={["bordered", "width-sm"]}
title="Was this page useful?"
placeholder="(optional) Type your feedback"
/>
Available styles:
style | description |
---|---|
bordered | add a thin rounded border with some padding around the form |
align-center | align the content to the center |
width-sm | set the max-width to 320px |
width-md | set the max-width to 440px |
For total control, you can still use custom CSS to override any style.
New Astro Starlight integration
You can collect feedback in your documentation pages built with Astro Starlight.
You can see the complete setup in the samples/astro-starlight directory.
Read the complete integration guide.
SDKs update
Contributing
Feelback SKDs are open source and developed publicly on GitHub.
Any contribution is much appreciated. Issues, bug reports and feature requests are welcome. Do not hesitate to reach us or ask for help.