Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@personare/react-freshdesk-widget
Advanced tools
A component of React for use the Freshdesk Widget
A component of React for use the Freshdesk Widget
yarn add @personare/react-freshdesk-widget
import FreshdeskWidget from '@personare/react-freshdesk-widget';
...
render() {
return (
<FreshdeskWidget url="https://support.freshdesk.com" />
);
}
...
import FreshdeskWidget from '@personare/react-freshdesk-widget';
...
render() {
return (
<FreshdeskWidget url="https://support.freshdesk.com" type="pop-up">
<button>Send Feedback</button>
</FreshdeskWidget>
);
}
...
url
- requiredtype
- one of ['pop-up', 'incorporated']formTitle
- default: Help and supportformHeight
- default: 500pxsubmitThanks
- default: Thank you, one of our representatives will respond to you soon! =)buttonType
- only if the type property are equal 'pop-up'buttonText
- only if the type property are equal 'pop-up'buttonColor
- only if the type property are equal 'pop-up'buttonOffset
- only if the type property are equal 'pop-up'buttonPosition
- only if the type property are equal 'pop-up'buttonBackgroundColor
- only if the type property are equal 'pop-up'buttonBackgroundImage
- only if the type property are equal 'pop-up'autofill
- allows autofilling fieldsurl
(required)An URL of the service of your Freshdesk
For example:
...
render() {
return (
<FreshdeskWidget url="https://support.freshdesk.com" />
);
}
...
type
- one of ['pop-up', 'incorporated']The type of widget you want to insert the page.
Currently you can perform through two ways:
default: incorporated
For example:
...
render() {
return (
<FreshdeskWidget
url="https://support.freshdesk.com"
type="pop-up"
/>
);
}
...
formTitle
(optional)What will be the title of the form.
default: Help and support
For example:
...
render() {
return (
<FreshdeskWidget
url="https://support.freshdesk.com"
formTitle="This is a custom title"
/>
);
}
...
formHeight
The height of the form.
default: 500px
For example:
...
render() {
return (
<FreshdeskWidget
url="https://support.freshdesk.com"
formHeight="700px"
/>
);
}
...
submitThanks
The message that appears after the user send feedback.
default: Thank you, one of our representatives will respond to you soon! =)
For example:
...
render() {
return (
<FreshdeskWidget
url="https://support.freshdesk.com"
submitThanks="Thank you!!!"
/>
);
}
...
buttonType
- one of ['text', 'image']The type of button when use pop-up.
default: text
Note: When do you use an image type is necessary to pass buttonBackgroundImage
property.
For example:
...
render() {
return (
<FreshdeskWidget
url="https://support.freshdesk.com"
type="pop-up"
buttonType="image"
buttonBackgroundImage="my-custom-button.png"
/>
);
}
...
buttonText
- (optional)The text of button.
default: Support
For example:
...
render() {
return (
<FreshdeskWidget
url="https://support.freshdesk.com"
type="pop-up"
buttonType="text"
buttonText="Send feedback!"
/>
);
}
...
buttonColor
- (optional)The font color of button text.
default: white
For example:
...
render() {
return (
<FreshdeskWidget
url="https://support.freshdesk.com"
type="pop-up"
buttonType="text"
buttonText="Send feedback!"
buttonColor="yellow"
/>
);
}
...
buttonBackgroundColor
- (optional)The background-color of button.
default: #015453
For example:
...
render() {
return (
<FreshdeskWidget
url="https://support.freshdesk.com"
type="pop-up"
buttonType="text"
buttonText="Send feedback!"
buttonColor="yellow"
buttonBackgroundColor="#012471"
/>
);
}
...
buttonPosition
- one of ['left', 'right', 'top', 'bottom']The position of button in the window.
default: top
For example:
...
render() {
return (
<FreshdeskWidget
url="https://support.freshdesk.com"
type="pop-up"
buttonType="text"
buttonText="Send feedback!"
buttonColor="yellow"
buttonBackgroundColor="#012471"
buttonPosition="bottom"
/>
);
}
...
buttonOffset
- (optional)The offset of button.
default: 235px
For example:
...
render() {
return (
<FreshdeskWidget
url="https://support.freshdesk.com"
type="pop-up"
buttonType="text"
buttonText="Send feedback!"
buttonColor="yellow"
buttonBackgroundColor="#012471"
buttonPosition="bottom"
buttonOffset="150px"
/>
);
}
...
buttonBackgroundImage
- (optional)When you use the buttonType
with image, need to specify the URL and this property is for this.
default: 235px
For example:
...
render() {
return (
<FreshdeskWidget
url="https://support.freshdesk.com"
type="pop-up"
buttonType="image"
buttonBackgroundImage="http://localhost/my-custom-image.png"
buttonPosition="bottom"
buttonOffset="150px"
/>
);
}
...
autofill
- (optional)If you want to fill any of the fields in with data from your application you can do that here. This doesn't work for custom fields.
For example:
...
render() {
return (
<FreshdeskWidget
url="https://support.freshdesk.com"
type="pop-up"
autofill={{ requester: user.email }}
/>
);
}
...
To start developing in the project run:
yarn serve
Then ready at http://localhost:9001
.
Just run:
yarn test
This scaffolding will be generated by @Personare/react-component-generator
FAQs
A component of React for use the Freshdesk Widget
The npm package @personare/react-freshdesk-widget receives a total of 25 weekly downloads. As such, @personare/react-freshdesk-widget popularity was classified as not popular.
We found that @personare/react-freshdesk-widget demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.