The official library for using Untitled UI icons with JavaScript.
Supports Vue JS, React JS, Solid JS, and Qwik JS.
untitledui-js
is now the official library for using Untitled UI icons in JavaScript. This change was approved by Jordan Hughes from Untitled UI, ensuring the legality and long-term safety of the library.
To support this transition, the library has been rewritten from the ground up for consistency across frameworks. The new version emphasizes type safety and an improved developer experience. Moving forward, the current syntax and system are designed to avoid breaking changes.
A notable change is that untitledui-js
is now the primary library for both animated and non-animated icons. As a result, untitledui-js-base
will no longer be supported.
Official link: Untitled UI Icons
If you previously used pathProps
to animate icons, note that a new animation pattern is now required. While the new approach no longer directly adjusts path properties, it introduces more robust options for animating both the path properties and the SVG itself.
import { Activity } from "untitledui-js";
function App() {
return (
<Activity
// motion properties
pathProps={
{
// motion properties
}
}
/>
);
}
The new pattern introduces the motion library as an argument for animations, making animations conditional.
import { Activity } from "untitledui-js/react";
import { motion } from "motion/react";
function App() {
return (
<Activity
animation={{
motion: motion,
attributes: {
svg: {
// motion attributes
},
path: {
// motion attributes
},
},
}}
/>
);
}
<template>
<Activity />
</template>
<script>
import { Activity } from "untitledui-js/vue";
export default {
components: {
Activity,
},
};
</script>
import { component$ } from "@builder.io/qwik";
import { Activity } from "untitledui-js/qwik";
export default component$(() => {
return (
<div>
<Activity />
</div>
);
});
import { Activity } from "untitledui-js/solid";
function App() {
return <Activity />;
}