Gathering detailed insights and metrics for @tradeshift/elements.select-menu
Gathering detailed insights and metrics for @tradeshift/elements.select-menu
Gathering detailed insights and metrics for @tradeshift/elements.select-menu
Gathering detailed insights and metrics for @tradeshift/elements.select-menu
Tradeshift Elements - Reusable Tradeshift UI Components as Web Components https://tradeshift.github.io/elements
npm install @tradeshift/elements.select-menu
Typescript
Module System
Node Version
NPM Version
67.3
Supply Chain
66.3
Quality
82.8
Maintenance
100
Vulnerability
88
License
JavaScript (71.71%)
CSS (18.77%)
HTML (9.2%)
Shell (0.32%)
Built with Next.js • Fully responsive • SEO optimized • Open source ready
Total Downloads
4,216
Last Day
1
Last Week
3
Last Month
14
Last Year
504
NOASSERTION License
17 Stars
1,164 Commits
16 Forks
7 Watchers
39 Branches
119 Contributors
Updated on Sep 01, 2025
Latest Version
0.40.2
Package Id
@tradeshift/elements.select-menu@0.40.2
Unpacked Size
63.92 kB
Size
15.95 kB
File Count
7
NPM Version
lerna/5.1.4/node@v16.18.0+x64 (linux)
Node Version
16.18.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-25%
3
Compared to previous week
Last Month
-80.8%
14
Compared to previous month
Last Year
-41.2%
504
Compared to previous year
Part of the reusable Tradeshift UI Components as Web Components. Demo
Property | Attribute | Type | Default | Description |
---|---|---|---|---|
dir | dir | String | ltr | Direction of the component 'rtl' or 'ltr'. |
disabled | disabled | Boolean | false | Is component disabled or not. |
items | items | Array | List of available options. Item must have 'id' and 'title', it can also have an 'icon' which is the name of the icon | |
filteredItems | filtered-items | Array | List of filtered options based on the select filter input value. items should be updated to always include all filtered items. | |
multiselect | multiselect | Boolean | false | Allow users to select several options or not. |
noApplyButton | no-apply-button | Boolean | false | Do not show the apply button and directly emit select-menu-changed when the selection changes. Only affects the behaviour when multiselect is enabled, for single selection this is the default behavior. |
selected | selected | Array | [] | List of selected items' ids |
translations | translations | Object | Translated messages for the user locale | |
loading | loading | Boolean | false | Set component in loading state and render a spinner instead of list of items |
caseSensitive | case-sensitive | Boolean | false | Make client side filtering case sensitive which by default is case-insensitive |
dirty | dirty | Boolean | false | INTERNAL Does component has uncommited changes or not. |
currentSelection | currentSelection | Array | [] | INTERNAL List of currently selected changes that user not commited yet. |
filterValue | filterValue | String | '' | INTERNAL Latest input value that was used to filter. |
showSelectedOnly | showSelectedOnly | Boolean | false | INTERNAL Filter to show only selected items. |
Name | Description | Payload |
---|---|---|
select-menu-changed | Emitted when user applies the selected changes |
1$ npm i @tradeshift/elements.select-menu --save
1import '@tradeshift/elements.select-menu';
or
1<script src="node_modules/@tradeshift/elements.select-menu/lib/select-menu.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)
1<link rel="stylesheet" href="node_modules/@tradeshift/elements/src/fonts.css" />
For supporting IE11 you need to add couple of things
1<!-- Place this in the <head>, before the Web Component polyfills are loaded --> 2<script> 3 if (!window.Promise) { 4 window.ShadyCSS = { nativeCss: true }; 5 } 6</script>
1$ npm i @open-wc/polyfills-loader
1import loadPolyfills from '@open-wc/polyfills-loader'; 2 3loadPolyfills().then(() => import('./my-app.js'));
1$ npm i @webcomponents/webcomponentsjs --save
1<script src="/node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
@webcomponents/webcomponentsjs
1<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.
No vulnerabilities found.