Skip to content

kevanantha/melange-radix-icons

Repository files navigation

melange-radix-icons

Melange bindings for Radix Icons

Install

Install opam package manager.

Then:

npm install @radix-ui/react-icons
opam install melange-radix-icons

Usage

Add melange-radix-icons to the libraries in your dune file:

; ...
(libraries melange-radix-icons)
; ...

Use it in your component:

[@react.component]
let make = () => {
  <RadixIcons.Sun
    className="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"
  />
}