💅 Popular icon packs like Font Awesome, Material Design, and Octicons, available as React Styled Components
MIT License
Bot releases are visible (Hide)
Published by icon-bot over 4 years ago
Published by icon-bot over 4 years ago
Published by icon-bot over 4 years ago
Published by icon-bot over 4 years ago
StyledIcon
TypeScript type automatically generated from type of an iconPublished by icon-bot over 4 years ago
(breaking) the TypeScript interface StyledIcon
no longer exists and is not exported anymore.
TypeScript types are now auto-generated from the @types/styled-components
definitions rather than explicitly named as the StyledIcon
interface. This allows styled-icons
to pick up any changes introduced in @types/styled-components
automatically, rather than needing to redefine the type to match any updates.
If you need access to the StyledIcon
type, you can define it yourself based on an icon import:
import {Alert} from 'styled-icons/octicons'
export type StyledIcon = typeof Alert
Update: there is now an exported StyledIcon
type, defined using the above approach, exported from the root package available in v5.1.0:
import {StyledIcon} from 'styled-icons'
Published by icon-bot over 4 years ago
Published by icon-bot over 4 years ago
Published by icon-bot over 4 years ago
Published by icon-bot over 4 years ago
Published by icon-bot over 4 years ago
Published by icon-bot over 4 years ago
Published by icon-bot over 4 years ago
Published by icon-bot over 4 years ago
Published by icon-bot over 4 years ago
Published by icon-bot over 4 years ago
Published by icon-bot over 4 years ago
Published by icon-bot over 4 years ago
css
prop for adding additional styles. This shortcuts the built-in inheritance capabilities of Styled Components and generally led to hard-to-debug edge casesPublished by icon-bot over 4 years ago
arrow-both
icon)Published by icon-bot over 4 years ago
convertShapeToPath
transformation that simplified icon SVGs as it was breaking certain iconsPublished by icon-bot over 4 years ago
.cjs
entrypoints required non-CommonJS files