CS

Cssinjs

@ant-design/cssinjs

Component level cssinjs resolution for antd

Utilities
react
cssinjs
antd
ant-design
@ant-design/cssinjs
Utilities
javascript
npm
frontend
open source
Stars
288
Weekly
1.8M
Open issues
51
Bundle
~25 kB

Installation

npm install @ant-design/cssinjs

Code example

import { useCssinjs } from "@ant-design/cssinjs";

export function Example() {
  const value = useCssinjs();
  return <p>{String(value)}</p>;
}

Pros & cons

Pros

  • Actively maintained by afc163
  • 1.8M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 51 open issues on GitHub

FAQs

Alternatives & similar libraries