Need advice about which tool to choose?Ask the StackShare community!

Stencil

88
110
+ 1
0
styled-components

1.9K
605
+ 1
12
Add tool

Stencil vs styled-components: What are the differences?

What is Stencil? A reusable web component generator. Stencil combines some of the best features from traditional frameworks, but outputs 100% standards-compliant Custom Elements, part of the Web Component spec.

What is styled-components? Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress. Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress đź’….

Stencil and styled-components can be primarily classified as "JavaScript Framework Components" tools.

Stencil and styled-components are both open source tools. It seems that styled-components with 24.7K GitHub stars and 1.46K forks on GitHub has more adoption than Stencil with 6.03K GitHub stars and 354 GitHub forks.

Decisions about Stencil and styled-components
Luca Restagno
Co-Founder at iterspace · | 5 upvotes · 23.5K views

Storybook, along with React, styled-components, and Atomic Design, is the perfect tool to boost your front end development productivity. It helps you develop isolated presentational components with a super fast hot reload. It allows to test your props with knobs. Finally you compose, and reuse your components in your app.

You can host your storybook as a static website and share it with the other devs, so they are aware of the components already available in your library, and how to use them.

You can share the same with your UI/UX team, and converge towards a common design system.

You can even run visual regression tests on your library, with storyshots.

Which stack do you use on the Front End?

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Stencil
Pros of styled-components
    Be the first to leave a pro
    • 11
      Very easy to use and integrate
    • 1
      Huihui

    Sign up to add or upvote prosMake informed product decisions

    What is Stencil?

    Stencil combines some of the best features from traditional frameworks, but outputs 100% standards-compliant Custom Elements, part of the Web Component spec.

    What is styled-components?

    Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress đź’…

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Stencil?
    What companies use styled-components?
    Manage your open source components, licenses, and vulnerabilities
    Learn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Stencil?
    What tools integrate with styled-components?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to Stencil and styled-components?
    Svelte
    If you've ever built a JavaScript application, the chances are you've encountered – or at least heard of – frameworks like React, Angular, Vue and Ractive. Like Svelte, these tools all share a goal of making it easy to build slick interactive user interfaces. Rather than interpreting your application code at run time, your app is converted into ideal JavaScript at build time. That means you don't pay the performance cost of the framework's abstractions, or incur a penalty when your app first loads.
    React
    Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
    Polymer
    Polymer is a new type of library for the web, designed to leverage the existing browser infrastructure to provide the encapsulation and extendability currently only available in JS libraries. Polymer is based on a set of future technologies, including Shadow DOM, Custom Elements and Model Driven Views. Currently these technologies are implemented as polyfills or shims, but as browsers adopt these features natively, the platform code that drives Polymer evacipates, leaving only the value-adds.
    jQuery
    jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.
    AngularJS
    AngularJS lets you write client-side web applications as if you had a smarter browser. It lets you use good old HTML (or HAML, Jade and friends!) as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly. It automatically synchronizes data from your UI (view) with your JavaScript objects (model) through 2-way data binding.
    See all alternatives