react-feather APIs
- ArrowLeft
- ChevronDown
- X
- ChevronUp
- Plus
- ArrowDown
- CheckCircle
- AlertTriangle
- ChevronRight
- ArrowUpCircle
- AlertCircle
- Info
- Settings
- Repeat
- Activity
- Check
- Copy
- HelpCircle
- Triangle
- Trash
- Search
- Code
- PieChart
- ArrowRight
- Edit
- BookOpen
- MessageCircle
- Download
- Eye
- Upload
- GitHub
- Minus
- Filter
- File
- Folder
- ChevronsLeft
- ChevronsRight
- Icon
- XCircle
- PlusCircle
- ArrowUp
- ChevronLeft
- Loader
- ChevronsDown
- Menu
- FileText
- Share
- Clipboard
- Link
- FilePlus
- FolderPlus
- Trash2
- EyeOff
- Save
- Edit3
- CornerDownRight
- XOctagon
- ArrowUpRight
- Paperclip
- ChevronsUp
- Globe
- Sunrise
- Calendar
- CheckSquare
- Square
- Zap
- Bookmark
- Briefcase
- DollarSign
- Gift
- Home
- Layers
- PlusSquare
- Battery
- BatteryCharging
- Monitor
- Wind
- AlertOctagon
- CornerUpLeft
- RefreshCw
- ExternalLink
- Sliders
- Lock
- Divide
- Slash
- Maximize2
- Box
- Grid
- Package
- Server
- Star
- Heart
- Link2
- GitBranch
- Send
- Moon
- Sun
- List
- MoreHorizontal
- ArrowDownCircle
- RotateCw
- RotateCcw
- Slack
Other Related APIs
react-feather#Slash TypeScript Examples
The following examples show how to use
react-feather#Slash.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.tsx From limit-orders-lib with GNU General Public License v3.0 | 6 votes |
/**
* Renders an image by sequentially trying a list of URIs, and then eventually a fallback triangle alert
*/
export default function Logo({ srcs, alt, style, ...rest }: LogoProps) {
const [, refresh] = useState<number>(0);
const theme = useTheme();
const src: string | undefined = srcs.find((src) => !BAD_SRCS[src]);
if (src) {
return (
<img
{...rest}
alt={alt}
src={src}
style={style}
onError={() => {
if (src) BAD_SRCS[src] = true;
refresh((i) => i + 1);
}}
/>
);
}
return <Slash {...rest} style={{ ...style, color: theme.bg4 }} />;
}