
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@tradeshift/elements.confirmation-prompt
Advanced tools
Part of the reusable Tradeshift UI Components as Web Components. Demo
table { width:100%; }| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
| visible | data-visible | Boolean | false | Dialog can be toggled by add/removing this attribute |
| header | data-header | String | Header of the modal | |
| title | data-title | String | Title on top of the text part | |
| text | text | String | Text content of the modal | |
| textFieldLabel | text-field-label | String | Label of the text field component | |
| textFieldPlaceholder | text-field-placeholder | String | Placeholder of the text field component | |
| helpTextMessages | help-text-messages | Array | Array of messages to pass to help-text component. See help-text component for more info | |
| helpTextTitle | help-text-title | String | If you have more than one help text message, you should pass a title to it. See help-text component for more info | |
| translations | translations | Object | Can be used for customizing the buttons text and providing translations for them | |
| textToMatch | text-to-match | String | Text that the user need to type for confirmation | |
| matched | matched | Boolean | false | INTERNAL |
| Name | Description |
|---|---|
| title | If in rare cases you need to have more complex title than text property, you can override the title by using this slot |
| content | If in rare cases you need to have more complex content than text property, you can override the text by using this slot |
| Name | Description | Payload |
|---|---|---|
| accept | Emitted when the user choose the accept option | |
| cancel | Emitted when the user choose the cancel option | |
| close | Emitted when the user dismiss the modal, includes cancel button click, close button click, backdrop cover click |
$ npm i @tradeshift/elements.confirmation-prompt --save
import '@tradeshift/elements.confirmation-prompt';
or
<script src="node_modules/@tradeshift/elements.confirmation-prompt/lib/confirmation-prompt.umd.js"></script>
Use it like demo
Our components rely on having the Open Sans available, You can see the font-weight and font-style you need to load here, or you can just load it from our package (for now)
<link rel="stylesheet" href="node_modules/@tradeshift/elements/src/fonts.css" />
For supporting IE11 you need to add couple of things
<!-- Place this in the <head>, before the Web Component polyfills are loaded -->
<script>
if (!window.Promise) {
window.ShadyCSS = { nativeCss: true };
}
</script>
$ npm i @open-wc/polyfills-loader
import loadPolyfills from '@open-wc/polyfills-loader';
loadPolyfills().then(() => import('./my-app.js'));
$ npm i @webcomponents/webcomponentsjs --save
<script src="/node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
@webcomponents/webcomponentsjs<script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js" defer></script>
Thanks for your interest and help!
You can find some links to useful materials about what we are using and some tutorials and articles that can help you get started.
You can see a list of limitations that we should watch out for, here
You can read the full license agreement in the LICENSE.md.
FAQs
Unknown package
We found that @tradeshift/elements.confirmation-prompt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.