Free and open-source React featured icon components built for modern applications and websites. These featured icons are built using React Aria and styled with Tailwind CSS.
Installation
You can add this featured icon component using our CLI or manually:
npx untitledui@latest add featured-icon
Featured icon examples
Below are examples and variations of this featured icon component:
API reference
FeaturedIcon
Import FeaturedIcon from @/components/foundations/featured-icon/featured-icon. Renders a <div> element.
FAQs
Please refer to our frequently asked questions page for more.
The theme prop accepts "light", "gradient", "dark", "outline", "modern" and "modern-neue". The default is "light".
The color prop accepts "brand", "gray", "success", "warning" and "error", and falls back to "brand" at runtime. All five colors are styled for every theme except "modern-neue", which only defines styles for "gray". The examples on this page use "gray" for both modern themes.
Featured icons support "sm", "md", "lg" and "xl", and the default is "sm". For every theme except "outline", these render 32px, 40px, 48px and 56px containers. The "outline" theme uses a smaller center with rings drawn around it.
Automatic sizing only applies when you pass a component reference, like icon={CheckCircle}. If you pass a React element, like icon={<CheckCircle />}, it's wrapped in a div and keeps whatever size you give it, so add a size class such as size-5 yourself.
Yes. Anything you pass as children renders inside the container after the icon. You can leave out the icon prop and pass your own content instead.
Pass Tailwind classes through className. They're merged last with tailwind-merge, so a class like rounded-lg overrides the conflicting class from the theme.