npm
npmjs.com › package › @types › styled-components
@types/styled-components - npm
TypeScript definitions for styled-components. Latest version: 5.1.36, last published: 4 months ago. Start using @types/styled-components in your project by running `npm i @types/styled-components`. There are 2126 other projects in the npm registry using @types/styled-components.
» npm install @types/styled-components
Published Nov 18, 2025
Version 5.1.36
styled-components
styled-components.com › docs › api
styled-components
styled-components provides TypeScript definitions which empowers the editing experience in IDEs and increases type safety for TypeScript projects. ... For older versions of styled-components, there are community definitions available via the @types/styled-components NPM package.
Videos
10:19
React Typescript Tutorial - Styled Components - React TS Crash ...
36:05
Styled Components Typescript React Example - Part 8 - YouTube
2. Setup Project With NextJS, TypeScript & Styled ...
01:30:12
CSS-in-JS com Styled Components no React Native | Decode #25 - YouTube
28:00
React Typescript and Styled-Components Tutorial - YouTube
npm
npmjs.com › package › typescript-plugin-styled-components
typescript-plugin-styled-components - npm
June 2, 2023 - TypeScript transformer for improving the debugging experience of styled-components. Latest version: 3.0.0, last published: 2 years ago. Start using typescript-plugin-styled-components in your project by running `npm i typescript-plugin-styled-components`. There are 58 other projects in the npm registry using typescript-plugin-styled-components.
» npm install typescript-plugin-styled-components
Published Jun 02, 2023
Version 3.0.0
Author Igor Oleinikov
npm
npmjs.com › package › styled-components-ts
styled-components-ts - npm
Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress and the added benefits of TypeScript 💅. Latest version: 0.0.15, last published: 7 years ago. Start using styled-components-ts in your project by running `npm i styled-components-ts`. There are 5 other projects in the npm registry using styled-components-ts.
» npm install styled-components-ts
Published Nov 25, 2018
Version 0.0.15
Author Jacob Ebey
npm
npmjs.com › package › @types › styled-components-react-native
@types/styled-components-react-native - npm
November 7, 2023 - TypeScript definitions for styled-components-react-native. Latest version: 5.2.5, last published: 2 years ago. Start using @types/styled-components-react-native in your project by running `npm i @types/styled-components-react-native`. There are 35 other projects in the npm registry using ...
» npm install @types/styled-components-react-native
Published Nov 07, 2023
Version 5.2.5
Medium
xfor.medium.com › developing-publishing-react-component-library-to-npm-styled-components-typescript-cc8274305f5a
Developing & publishing React component library to NPM (styled-components + Typescript) | by Michal Wrzosek | Medium
August 7, 2024 - The boilerplate repo is ready to start working with React, styled-components and Typescript. Keep all your library files within /src directory. The root file with all exports is located in /src/index.ts · Example-app is located in /example-nextjs directory and it’s a v14 nextjs app. While running npm run dev every time you change something in your library, Rollup is creating 3 JavaScript bundle files and 2 root Typescript declarations of all your types:
npm
npmjs.com › package › typescript-styled-components-plugin
typescript-styled-components-plugin - npm
November 26, 2020 - A styled-components plugin to minify & set componentId & displayName for typescript. Latest version: 1.1.4, last published: 4 years ago. Start using typescript-styled-components-plugin in your project by running `npm i typescript-styled-components-plugin`. There are no other projects in the npm registry using typescript-styled-components-plugin.
» npm install typescript-styled-components-plugin
Published Nov 26, 2020
Version 1.1.4
Author acrazing
npm
npmjs.com › package › @styled › typescript-styled-plugin
@styled/typescript-styled-plugin - npm
This extension adds syntax highlighting and IntelliSense for styled components in JavaScript and TypeScript files. If you are using a workspace version of TypeScript however, you must manually install the plugin along side the version of TypeScript ...
» npm install @styled/typescript-styled-plugin
Published Dec 11, 2023
Version 1.0.1
Author Styled Components
npm
npmjs.com › package › styled-components
styled-components - npm
1 week ago - CSS for the Age. Style components your way with speed, strong typing, and flexibility.. Latest version: 6.3.12, last published: 8 days ago. Start using styled-components in your project by running `npm i styled-components`. There are 24333 other projects in the npm registry using styled-components.
» npm install styled-components
GitHub
github.com › Igorbek › typescript-plugin-styled-components
GitHub - Igorbek/typescript-plugin-styled-components: TypeScript transformer for improving the debugging experience of styled-components · GitHub
Starred by 419 users
Forked by 32 users
Languages TypeScript 97.3% | JavaScript 2.7%
npm
npmjs.com › package › typescript-styled-plugin
typescript-styled-plugin - npm
April 4, 2023 - This extension adds syntax highlighting and IntelliSense for styled components in JavaScript and TypeScript files. If you are using a workspace version of TypeScript however, you must manually install the plugin along side the version of TypeScript ...
» npm install typescript-styled-plugin
Published Apr 04, 2023
Version 0.18.3
Author Microsoft
Alibaba Cloud
developer.aliyun.com › mirror › npm › package › @types › styled-components
Package - @types/styled-components
October 7, 2021 - TypeScript definitions for styled-components · Last updated a month ago by types . MIT · Repository · Original npm · Tarball · package.json · $ cnpm install @types/styled-components · SYNC missed versions from official npm registry. npm install --save @types/styled-components ·
GitHub
github.com › microsoft › typescript-styled-plugin
GitHub - microsoft/typescript-styled-plugin: TypeScript server plugin that adds intellisense to styled component css strings
This extension adds syntax highlighting and IntelliSense for styled components in JavaScript and TypeScript files. If you are using a workspace version of TypeScript however, you must manually install the plugin along side the version of TypeScript ...
Starred by 837 users
Forked by 57 users
Languages JavaScript 54.1% | TypeScript 45.9% | JavaScript 54.1% | TypeScript 45.9%
LogRocket
blog.logrocket.com › home › using styled-components in typescript: a tutorial with examples
Using styled-components in TypeScript: A tutorial with examples - LogRocket Blog
June 4, 2024 - This is because each component already has its style in its body, so when you need to debug, you immediately know where to check. Let’s create one more folder: a helper folder. In the helper folder, we’ll create two files: PageText.tsx and ItemWrapper.tsx. The page has a lot of text on it with different sizes and colours. To avoid repetition, we need to create TypeScript components and pass some CSS properties as props.
jsDocs.io
jsdocs.io › package › styled-components
styled-components@6.3.5 - jsDocs.io
January 16, 2026 - The css prop is not declared by default in the types as it would cause css to be present on the types of anything that uses styled-components indirectly, even if they do not use the babel plugin. To enable support for the css prop in TypeScript, create a styled-components.d.ts file in your project source with the following contents:
jsDocs.io
jsdocs.io › package › @types › styled-components
@types/styled-components@5.1.36 - jsDocs.io
npm i @types/styled-components · yarn add @types/styled-components · pnpm add @types/styled-components · TypeScript definitions for styled-components · css · styled · ThemeConsumer · ThemeContext · ThemeProvider · withTheme · createGlobalStyle() isStyledComponent() keyframes() useTheme() ServerStyleSheet ·
Top answer 1 of 10
211
There have been some recent developments and with a new version of Typescript (eg. 3.0.1) and styled-components (eg. 3.4.5) there's no need for a separate helper. You can specify the interface/type of your props to styled-components directly.
interface Props {
onPress: any;
src: any;
width: string;
height: string;
}
const Icon = styled.Image<Props>`
width: ${p => p.width};
height: ${p => p.height};
`;
and if you want to be more precise and ignore the onPress
const Icon = styled.Image<Pick<Props, 'src' | 'width' | 'height'>>`
width: ${p => p.width};
height: ${p => p.height};
`;
2 of 10
23
The easiest way as styled-components docs said:
import styled from 'styled-components';
import Header from './Header';
const NewHeader = styled(Header)<{ customColor: string }>`
color: ${(props) => props.customColor};
`;
// Header will also receive props.customColor
Npm
npm.io › package › typescript-styled-components-plugin
Typescript-styled-components-plugin NPM | npm.io
A styled-components plugin to minify & set componentId & displayName for typescript.