Usage
Styling and changing the Icon Appearance
Here are some possibilities and tips for customizing icons. But there are so many options that they wouldn't all fit here.
If it's available in Tailwind, you can try it with rocketicons
Loading...
Defining background
Use the Tailwind utilities to set the icons background.
<div><IoIosTennisballclassName="bg-white ..." /><IoIosTennisballclassName="bg-red-200 ..." /><IoIosTennisballclassName="bg-orange-200 ..." /><IoIosTennisballclassName="bg-lime-200 ..." /></div>
Stroke Width
The outlined
icons can have their line width customized using the
stroke width Tailwind's utilities.
<div><IoIosTennisballclassName="stroke-[0.2] ..." /><IoIosTennisballclassName="stroke-[0.5] ..." /><IoIosTennisballclassName="stroke-1 ..." /><IoIosTennisballclassName="stroke-[1.5] ..." /><IoIosTennisballclassName="stroke-2 ..." /><IoIosTennisballclassName="stroke-[3px] ..." /></div>
Define border
Every border utility should work with no problems on rocketicons.
Border Radius You can define the border radius.
<div><IoIosTennisballclassName="border border-slate-600 ..." /><IoIosTennisballclassName="rounded border border-slate-600 ..." /><IoIosTennisballclassName="rounded-md border border-slate-600 ..." /><IoIosTennisballclassName="rounded-lg border border-slate-600 ..." /></div>
Border
Border width
You can define the border width.
<div><IoIosTennisballclassName="border-2 border-slate-600 ..." /><IoIosTennisballclassName="border-4 border-slate-600 ..." /><IoIosTennisballclassName="border-8 border-slate-600 ..." /></div>
Borders
Border Style
You can define the border style.
<div><IoIosTennisballclassName="border-solid border-slate-600 ..." /><IoIosTennisballclassName="border-dashed border-slate-600 ..." /><IoIosTennisballclassName="border-dotted border-slate-600 ..." /><IoIosTennisballclassName="border-double border-slate-600 ..." /></div>
Outline
Define outline. Take a look on every outline available option.
<div><IoIosTennisballclassName="outline outline-offset-2 outline-1 ..." /><IoIosTennisballclassName="outline outline-offset-2 outline-2 ..." /><IoIosTennisballclassName="outline outline-offset-2 outline-4 ..." /></div>
Ring
Define ring. Take a look on every ring.
<div><IoIosTennisballclassName="ring-offset-2 ring ..." /><IoIosTennisballclassName="ring-offset-2 ring-2 ..." /><IoIosTennisballclassName="ring-offset-2 ring-4 ..." /></div>
Effects
Effects like shadow, opacity e mix bend can be applied.
<div><IoIosTennisballclassName="shadow-md ..." /><IoIosTennisballclassName="shadow-lg ..." /><IoIosTennisballclassName="shadow-xl ..." /><IoIosTennisballclassName="shadow-2xl ..." /></div>
Animations
Animations and transitions can be used with icons, but this functionality is only available for React. Custom animations can be created, learn how on Tailwind documentation.
React Native has some limited features. See the official documentation of NativeWind for more information.
<div><IoIosTennisballclassName="animate-bounce ..." /><IoIosTennisballclassName="animate-ping ..." /><IoIosTennisballclassName="animate-pulse ..." /><IoIosTennisballclassName="animate-spin ..." /></div>
Usage
Styling and changing the Icon Appearance
Here are some possibilities and tips for customizing icons. But there are so many options that they wouldn't all fit here.
If it's available in Tailwind, you can try it with rocketicons
<div><IoIosTennisballclassName="scale-50 ..." /><IoIosTennisballclassName="rotate-45 ..." /><IoIosTennisballclassName="skew-y-12 ..." /></div>
Cursor
Use cursor on icons.
Hover over the icon and see changes
<div><IoIosTennisballclassName="cursor-pointer ..." /><IoIosTennisballclassName="cursor-move ..." /><IoIosTennisballclassName="cursor-wait ..." /><IoIosTennisballclassName="cursor-grab ..." /></div>
Filters
Filters and icons.
NativeWind doesn't support filters, therefore this functionality isn't available for React Native."
<div><IoIosTennisballclassName="blur ..." /><IoIosTennisballclassName="brightness-50 ..." /><IoIosTennisballclassName="drop-shadow-lg ..." /><IoIosTennisballclassName="saturate-200 ..." /></div>