From this starter, what will you create? #1634
Replies: 3 comments 9 replies
-
This is kind of cheating, as it's built from the Slider Starter, and not the general starter... but, a query for a multi-range slider came up on the Lit & Friends Slack Channel and I wanted to see what might be possible with the amazing work @cuberoot did early this year with our multi-handled slider implementation. I came up with a rough prototype of how you could make something of this sort: https://webcomponents.dev/edit/CrM9PdA9bZTRe6I7n3SU/src/index.ts and I think it's actually kind of nice (even if I'm not sure I completely understand the need for such a UI). What do you think? Can you think of/share ways to take this even further? Spending some time with this makes me wish for a solid reason to prioritize #586 as it would be pretty cool to have the fill/offset be controllable between the various handles in a way that allowed it to be more clear how they are related therein. Anyone interested in making a contribution? Taking into account the advanced From there, a little more nuance around the color customization, etc. and some deeper thought into the aria content delivery and there could be a nice future in this element. |
Beta Was this translation helpful? Give feedback.
-
Hi @Westbrook Thanks for starting this topic, really appreciate! As per question on the Lit & Friends Slack Channel , this is the sample link of what actually we have achieved. Your previous sample was so helpful 😎😎 |
Beta Was this translation helpful? Give feedback.
-
Is there a codepen/code sandbox version of this example that shows which packages are necessary for customizing a component? I am struggling with what to import to properly render a component outside of the storybook environment/without importing the |
Beta Was this translation helpful? Give feedback.
-
While as many of our component documentation pages as possible feature a "Try it on webcomponents.dev" shield linking to a minimal demo project featuring the component it question, sometimes starting from an existing component demo isn't what you're looking to do. With this in mind the starter templates that webcomponents.dev features for each technology with which you can build a web component standardizes on a counter example to help you compare techniques. Did you know that Spectrum Web Components has one of these, too?
Check it out! https://webcomponents.dev/edit/HnzByTTgk9ahQ0S29zWi/src/index.stories.js
Along with the standard counter application built with Spectrum Web Components, this starter comes with the
swcThemeDecorator
baked into the stories for the project so that you can easily switch between the various Spectrum theme combinations from the jump and start deciding which combination is right for you application as soon as possible. This code also outlines how to you Spectrum icons as registered elements in your user interfaces while ensuring interactive elements are still appropriately labeled for accessibility, too.Take a test drive of the Spectrum Web Components Starter today and share what you make below!
Beta Was this translation helpful? Give feedback.
All reactions