export const title = "Featured icon components"
export const description = "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."
export const links = {
github: "https://github.com/untitleduico/react/tree/main/components/foundations/featured-icon",
}
import * as Demos from "@/components/foundations/featured-icon/featured-icon.demo.tsx";
```tsx
import { CheckCircle } from "@untitledui/icons";
import { FeaturedIcon } from "@/components/foundations/featured-icon/featured-icon";
```
## Installation
You can add this featured icon component using our CLI or manually:
```bash
npx untitledui@latest add featured-icon
```
Copy the files below into your project:
Great! Now you can start using the featured icons components in your project by just copy/pasting our examples below.
## Featured icon examples
Below are examples and variations of this featured icon component:
### Light {{ tocOnly:true }}
```tsx
import { CheckCircle } from "@untitledui/icons";
import { FeaturedIcon } from "@/components/foundations/featured-icon/featured-icon";
```
### Gradient {{ tocOnly:true }}
```tsx
import { CheckCircle } from "@untitledui/icons";
import { FeaturedIcon } from "@/components/foundations/featured-icon/featured-icon";
```
### Dark {{ tocOnly:true }}
```tsx
import { CheckCircle } from "@untitledui/icons";
import { FeaturedIcon } from "@/components/foundations/featured-icon/featured-icon";
```
### Outline {{ tocOnly:true }}
```tsx
import { CheckCircle } from "@untitledui/icons";
import { FeaturedIcon } from "@/components/foundations/featured-icon/featured-icon";
```
### Modern {{ tocOnly:true }}
```tsx
import { CheckCircle } from "@untitledui/icons";
import { FeaturedIcon } from "@/components/foundations/featured-icon/featured-icon";
```
### Modern neue {{ tocOnly:true }}
```tsx
import { CheckCircle } from "@untitledui/icons";
import { FeaturedIcon } from "@/components/foundations/featured-icon/featured-icon";
```
## API reference
}`, it's wrapped in a `div` and keeps whatever size you give it, so add a size class such as `size-5` yourself.",
},
{
question: "Can I put custom content inside a featured icon?",
answer: "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.",
},
{
question: "How do I customize the shape or styling of a featured icon?",
answer: "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.",
},
]}
/>