
Company News
Socket Named to Rising in Cyber 2026 List of Top Cybersecurity Startups
Socket was named to the Rising in Cyber 2026 list, recognizing 30 private cybersecurity startups selected by CISOs and security executives.
@webapp-suite/elements.dialog
Advanced tools
Part of the reusable webapp-suite 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 |
| text | text | String | Text content of the modal | |
| icon | icon | String | If you need a different icon that default ones, you can use one of Elements icon names | |
| type | type | String | dialogTypes.INFO | info, warning, danger |
| translations | translations | Object | can be used for customizing the buttons text and translations | |
| focused | focused | String | 'cancel' | set the default focus on the button, either accept or cancel |
| primary | primary | String | either accept or cancel can be used to change the button type, based on the dialog type, by default both are secondary | |
| renderButtons | renderButtons | Boolean | false | INTERNAL |
| Name | Description |
|---|---|
| content | If in rare cases you need to have more complex content than text property, you can override the text by using this slot |
| extra-buttons | To add more options to the dialog, between accept and cancel buttons |
| Name | Description | Payload |
|---|---|---|
| accept | Emitted when the user choose the accept option | |
| cancel | Emitted when the user choose the cancel option |
$ npm i @webapp-suite/elements.dialog --save
import '@webapp-suite/elements.dialog';
or
<script src="node_modules/@webapp-suite/elements.dialog/lib/dialog.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/@webapp-suite/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 @webapp-suite/elements.dialog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Company News
Socket was named to the Rising in Cyber 2026 list, recognizing 30 private cybersecurity startups selected by CISOs and security executives.

Research
Socket detected 84 compromised TanStack npm package artifacts modified with suspected CI credential-stealing malware.

Security News
A dispute over fsnotify maintainer access set off supply chain alarms around one of Go’s most widely used filesystem libraries.