devwithbobby

Untitled UI Icons

✨ Simple, Customizable SVG icons sourced from untitled UI with support for Framer motion for your React applications

80 views

Untitled UI JS - Customizable Icons for React & Next JS | Product Hunt

This initiative began due to increasing dissatisfaction with how the Feather Icons project was being managed. With over 300 open issues and more than 100 pending pull requests, the Feather Icons project has been left abandoned. This means that many developers and designers wasted their time contributing to Feather Icons without any chance of their pull requests being accepted.

Additionally, Untitled UI Icons supports SVG animations without the need for any configuration. Essentially, each icon is wrapped in a <motion.svg> ... </motion.svg> element, making it simple to incorporate dynamic animations.

Why choose Untitled UI JS over other icons libraries

Note

import { LazyIcon } from "untitledui-js";
 
export default function App() {
  //fallback is optional
  return (
    <LazyIcon name="Activity" {...props} fallback={<div>loading...</div>} />
  );
}

Installation

Setup with framer motion support

 npm i untitledui-js framer-motion

Setup without framer motion support

 npm i untitledui-js-base

Quick Start Guide

1. Imports

 
import { AnnotationAlert } from "untitledui-js"
<-- Direct Import  -->
 

2. Rendering on the DOM

//...imports
 
const App = () => {
  return <AnnotationAlert />;
};

3. Customization

return (
  <AnnotationAlert
    size={"15"} //adjusts both width and height properties
    pathProps={{
      ...props,
    }} //allows the adjustment of the path properties directly
    {...props} //other svg properties
  />
);