[HN Gopher] Shoelace: A library of web components
       ___________________________________________________________________
        
       Shoelace: A library of web components
        
       Author : alexzeitler
       Score  : 58 points
       Date   : 2024-01-10 20:46 UTC (2 hours ago)
        
 (HTM) web link (shoelace.style)
 (TXT) w3m dump (shoelace.style)
        
       | xk_id wrote:
       | On my phone, the whole page is covered by the left side menu.
       | Tapping on the burger doesn't hide the menu either. Not a good
       | impression from a web design library.
        
         | christophilus wrote:
         | What phone are you using? It seems fine on my old iPhone mini.
        
           | xk_id wrote:
           | Iphone 6S running 14.3.
        
             | perryg wrote:
             | That's before Safari added better web component support. I
             | would expect many sites and apps to not work at this point.
        
       | threeseed wrote:
       | I've used these in the past and they are really well done.
       | 
       | Also the developer now works at Microsoft and they are using it
       | so at least it has a major backer.
        
       | sureglymop wrote:
       | These look and feel great! Will give it a try.
        
       | spinningslate wrote:
       | this looks great. I'm puzzled by something though: why does it
       | duplicate components that already exist in standard HTML5
       | (Button, Checkbox, Dropdown etc.)? The whole idea of web
       | components is being able to augment what's already built in, not
       | have to replace it.
       | 
       | Maybe it's for consistency (styling/behaviour). Either way, it
       | looks really well done.
        
         | threatofrain wrote:
         | Theming is at least one reason.
        
         | troupo wrote:
         | Because browsers offer very little styling and customization
         | options even for the handful of built-in elements. That's why
         | every library under the sun tries to re-invent them again, and
         | again, and again.
         | 
         | https://open-ui.org/ will finally help with this, but it's a
         | very slow process.
        
         | lxe wrote:
         | The only reason we have 10,000 UI libraries in the last 20
         | years is because we decided to keep default browser UI ugly and
         | bare-bones for some reason.
        
       | claytongulick wrote:
       | I've used this, works great.
       | 
       | Good option for those who prefer vanilla web components.
       | 
       | Only hangup I ran into was the event/callback based API for some
       | components - promises would have been more convenient.
        
       | lxe wrote:
       | Finally a component library with trees and resizable panes!
        
       | xydac wrote:
       | have been following the development of this very closely for this
       | library, and love the fact that we can script load individual web
       | component in html as bare bones.
        
       ___________________________________________________________________
       (page generated 2024-01-10 23:00 UTC)