styled-components /styled-components
Fast, expressive styling for React. Server components, client components, streaming SSR, React Native—one API.
★ 41,048⑂ 2,595👁 367⑃ 1,527● 3,027▤ 269
+0
日增长
+0
周增长
41,048
stars
2,595
forks
367
watchers
1,527
prs
3,027
issues
269
releases
README
packages/styled-components/README.md
Top issues
#57676.4.3: `PolymorphicCallProps` rewrite causes 57× more `ComponentPropsWithRef` instantiations, +1.6 GB tsc heap in our app10 comments · 2026-07-02#5838stylisPluginRSC not working on Nextjs navigations7 comments · 2026-10-16#5808inline <style> tags get removed by <Suspense> streaming, making styles disappear7 comments · 2026-09-03#4350OOM during typecheking in 6.1.137 comments · 2024-09-09#4305Regression: `typeof` on a styled component returns incompatible type5 comments · 2024-05-07#5788[6.4.x / 6.5.0] Rules of Hooks violation in dev mode when styled component re-renders with unchanged style props (regression from 6.4.0)4 comments · 2026-08-06#5737SSR hydration mismatch (all class names differ between server and client) introduced in 6.3.12 with webpack + nodeExternals3 comments · 2026-04-30#5613Line comments are not supported in multiline style declarations3 comments · 2025-10-21
Discussions
#5673Any interest in integrating WyW-in-JS for a zero runtime option?0 comments · 2026-02-21#5657Is styled-components in maintenance mode?1 comments · 2026-02-02#5619New Philosofy0 comments · 2025-12-19#5568Library entering maintenance mode1 comments · 2025-03-23#5515Integration with tailwindcss?1 comments · 2025-01-01#4366React 16 compatibility with styled-components0 comments · 2024-11-01#4344Is this good approach? -- <style>{` ${Comp} {....} `}</style>0 comments · 2024-08-23#4330Is there any update roadmap?1 comments · 2024-07-05
Latest release
[email protected] [email protected] 2026-10-12Minor Changes
- 7ce6aea: Added a StyledComponent type for annotating explicitly-typed styled component exports.
Packages that emit their own declaration files, including any project using isolatedDeclarations, must annotate every exported styled component, and there was no public type for it: consumers reached into internal paths or hand-assembled one that dropped members like a wrapped component's hoisted statics.
StyledComponent is exported from the web and native entries. Name the target and props as you passed them to styled:
tsx
import styled, { type StyledComponent } from 'st