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><BsChevronExpandclassName="bg-white ..." /><BsChevronExpandclassName="bg-red-200 ..." /><BsChevronExpandclassName="bg-orange-200 ..." /><BsChevronExpandclassName="bg-lime-200 ..." /></div>
Stroke Width
The outlined
icons can have their line width customized using the
stroke width Tailwind's utilities.
<div><BsChevronExpandclassName="stroke-[0.2] ..." /><BsChevronExpandclassName="stroke-[0.5] ..." /><BsChevronExpandclassName="stroke-1 ..." /><BsChevronExpandclassName="stroke-[1.5] ..." /><BsChevronExpandclassName="stroke-2 ..." /><BsChevronExpandclassName="stroke-[3px] ..." /></div>
Define border
Every border utility should work with no problems on rocketicons.
Border Radius You can define the border radius.
<div><BsChevronExpandclassName="border border-slate-600 ..." /><BsChevronExpandclassName="rounded border border-slate-600 ..." /><BsChevronExpandclassName="rounded-md border border-slate-600 ..." /><BsChevronExpandclassName="rounded-lg border border-slate-600 ..." /></div>
Border
Border width
You can define the border width.
<div><BsChevronExpandclassName="border-2 border-slate-600 ..." /><BsChevronExpandclassName="border-4 border-slate-600 ..." /><BsChevronExpandclassName="border-8 border-slate-600 ..." /></div>
Borders
Border Style
You can define the border style.
<div><BsChevronExpandclassName="border-solid border-slate-600 ..." /><BsChevronExpandclassName="border-dashed border-slate-600 ..." /><BsChevronExpandclassName="border-dotted border-slate-600 ..." /><BsChevronExpandclassName="border-double border-slate-600 ..." /></div>
Outline
Define outline. Take a look on every outline available option.
<div><BsChevronExpandclassName="outline outline-offset-2 outline-1 ..." /><BsChevronExpandclassName="outline outline-offset-2 outline-2 ..." /><BsChevronExpandclassName="outline outline-offset-2 outline-4 ..." /></div>
Ring
Define ring. Take a look on every ring.
<div><BsChevronExpandclassName="ring-offset-2 ring ..." /><BsChevronExpandclassName="ring-offset-2 ring-2 ..." /><BsChevronExpandclassName="ring-offset-2 ring-4 ..." /></div>
Effects
Effects like shadow, opacity e mix bend can be applied.
<div><BsChevronExpandclassName="shadow-md ..." /><BsChevronExpandclassName="shadow-lg ..." /><BsChevronExpandclassName="shadow-xl ..." /><BsChevronExpandclassName="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><BsChevronExpandclassName="animate-bounce ..." /><BsChevronExpandclassName="animate-ping ..." /><BsChevronExpandclassName="animate-pulse ..." /><BsChevronExpandclassName="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><BsChevronExpandclassName="scale-50 ..." /><BsChevronExpandclassName="rotate-45 ..." /><BsChevronExpandclassName="skew-y-12 ..." /></div>
Cursor
Use cursor on icons.
Hover over the icon and see changes
<div><BsChevronExpandclassName="cursor-pointer ..." /><BsChevronExpandclassName="cursor-move ..." /><BsChevronExpandclassName="cursor-wait ..." /><BsChevronExpandclassName="cursor-grab ..." /></div>
Filters
Filters and icons.
NativeWind doesn't support filters, therefore this functionality isn't available for React Native."
<div><BsChevronExpandclassName="blur ..." /><BsChevronExpandclassName="brightness-50 ..." /><BsChevronExpandclassName="drop-shadow-lg ..." /><BsChevronExpandclassName="saturate-200 ..." /></div>