Icons
tetra-ui/iconsFreeComponent
Icon components styled with Tailwind classes for React Native.
Live preview
live · rendered by the registry
Rendered by tetra-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://tetra-ui.com/r/icons.jsonSource
1import type { LucideIcon } from "lucide-react-native";2import Svg from "react-native-svg";3import { withUniwind } from "uniwind";4import { cn } from "@/lib/utils";56const styledSvgOptionMapping = {7 height: {8 fromClassName: "className",9 styleProperty: "height",10 },11 style: {12 fromClassName: "className",13 },14 width: {15 fromClassName: "className",16 styleProperty: "width",17 },18} as const;1920export const StyledSvg = withUniwind(Svg, styledSvgOptionMapping);2122export const createStyledIcon = (Icon: LucideIcon): LucideIcon => {23 const UniwindIcon = withUniwind(Icon, styledSvgOptionMapping);2425 const StyledIcon = ({26 className,27 ...props28 }: React.ComponentProps<typeof UniwindIcon>) => {29 return (30 <UniwindIcon31 className={cn("size-6 text-foreground", className)}32 {...props}33 />34 );35 };3637 return StyledIcon as LucideIcon;38};
What it pulls in
npm packages
Files it writes
More from tetra-ui
All 41 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | tetra-ui | Components | Free | 1 dep | |
| Action Inputaction-input | tetra-ui | Components | Free | no deps | |
| Alertalert | tetra-ui | Components | Free | no deps | |
| Avataravatar | tetra-ui | Components | Free | no deps | |
| Badgebadge | tetra-ui | Components | Free | no deps | |
| Bottom Sheetbottom-sheet | tetra-ui | Components | Free | 4 deps · 7 files | |
| Buttonbutton | tetra-ui | Components | Free | no deps | |
| Cardcard | tetra-ui | Components | Free | no deps |
