BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcncraft/featured-icon

Featured Icon

shadcncraft/featured-icon
FreeComponent

A component that places an icon inside a styled square or circle frame for extra prominence. This component makes supporting visuals stand out in marketing layouts.

Live preview

live · rendered by the registry
Rendered by shadcncraft on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://shadcncraft.com/r/featured-icon.json

Source

components/shadcncraft/pro-marketing/featured-icon.tsxshadcncraft.com/r/featured-icon.json
1import * as React from "react";
2import { cva, type VariantProps } from "class-variance-authority";
3
4import { cn } from "@/lib/utils";
5
6export const featuredIconVariants = cva(
7 "flex shrink-0 items-center justify-center border bg-muted [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='text-'])]:text-primary",
8 {
9 variants: {
10 size: {
11 sm: "size-8 rounded-sm [&_svg]:size-3",
12 md: "size-12 rounded-md [&_svg]:size-4",
13 lg: "size-16 rounded-lg [&_svg]:size-6",
14 },
15 },
16 defaultVariants: {
17 size: "md",
18 },
19 }
20);
21
22export function FeaturedIcon({
23 size = "md",
24 className,
25 ...props
26}: React.ComponentProps<"div"> & VariantProps<typeof featuredIconVariants>) {
27 return (
28 <div
29 data-slot="featured-icon"
30 className={cn(featuredIconVariants({ size }), className)}
31 {...props}
32 />
33 );
34}

Files it writes

  • components/shadcncraft/pro-marketing/featured-icon.tsx

Facts

Registry
shadcncraft
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

Docs on shadcncraft shadcncraft.com Raw registry item This item as JSON

More from shadcncraft

All 26 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Avatar Stackavatar-stackshadcncraftComponentsFreeno deps
BadgebadgeshadcncraftComponentsFreeno deps
Image Zoomimage-zoomshadcncraftComponentsFree1 dep
MarqueemarqueeshadcncraftComponentsFreeno deps
Page Headingpage-headingshadcncraftComponentsFreeno deps
Placeholder Logoplaceholder-logoshadcncraftComponentsFreeno deps
Profile Cardprofile-cardshadcncraftComponentsFreeno deps
Section Headingsection-headingshadcncraftComponentsFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex