JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14753
  • Score
    100M100P100Q129389F
  • License MIT

Feather Icons components library for your Angular Applications

Package Exports

  • angular-feather
  • angular-feather/icons

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (angular-feather) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

angular-feather

npm license stars deps status

Description

This package allows you to use the Feather Icons in your angular applications. The icons are designed by Cole Bemis. Import only the icons that you need.

Demo

>> See live demo <<

Usage

1. Install the package

npm install angular-feather

2. Generate a module to host the icons you'll import

ng generate module icons

3. Import assets

You need to import:

  • FeatherModule, as it contains the <i-feather> component
  • The SVGs that you need

We put this in IconsModule for modularity. See example below:

file: icon.module.ts

import { NgModule } from '@angular/core';

import { FeatherModule } from 'angular-feather';
import { Camera, Heart, Github } from 'angular-feather/icons';

// Select some icons (use an object, not an array)
const icons = {
  Camera,
  Heart,
  Github
};

@NgModule({
  imports: [
    FeatherModule.pick(icons)
  ],
  exports: [
    FeatherModule
  ]
})
export class IconsModule { }

// NOTES:
// 1. We add FeatherModule to the 'exports', since the <i-feather> component will be used in templates of parent module
// 2. Don't forget to pick some icons using FeatherModule.pick({ ... })

3. Use it in template

After importing the IconsModule in your feature or shared module, use the icons as follows:

<i-feather name="github" class="someclass"></i-feather>
<i-feather name="heart" style="color: green;"></i-feather>
<i-feather name="camera"></i-feather>

Styling icons

<i-feather name="heart" class="big fill-red"></i-heart>
.big {
  height: 50px;
  width: 50px;
}

.fill-red {
  fill: red;
}

Available icons

Refer to the table below for the list of all available icons.

Symbol to import Icon name
activity Activity activity
airplay Airplay airplay
alert-circle AlertCircle alert-circle
alert-octagon AlertOctagon alert-octagon
alert-triangle AlertTriangle alert-triangle
align-center AlignCenter align-center
align-justify AlignJustify align-justify
align-left AlignLeft align-left
align-right AlignRight align-right
anchor Anchor anchor
aperture Aperture aperture
archive Archive archive
arrow-down-circle ArrowDownCircle arrow-down-circle
arrow-down-left ArrowDownLeft arrow-down-left
arrow-down-right ArrowDownRight arrow-down-right
arrow-down ArrowDown arrow-down
arrow-left-circle ArrowLeftCircle arrow-left-circle
arrow-left ArrowLeft arrow-left
arrow-right-circle ArrowRightCircle arrow-right-circle
arrow-right ArrowRight arrow-right
arrow-up-circle ArrowUpCircle arrow-up-circle
arrow-up-left ArrowUpLeft arrow-up-left
arrow-up-right ArrowUpRight arrow-up-right
arrow-up ArrowUp arrow-up
at-sign AtSign at-sign
award Award award
bar-chart-2 BarChart2 bar-chart-2
bar-chart BarChart bar-chart
battery-charging BatteryCharging battery-charging
battery Battery battery
bell-off BellOff bell-off
bell Bell bell
bluetooth Bluetooth bluetooth
bold Bold bold
book-open BookOpen book-open
book Book book
bookmark Bookmark bookmark
box Box box
briefcase Briefcase briefcase
calendar Calendar calendar
camera-off CameraOff camera-off
camera Camera camera
cast Cast cast
check-circle CheckCircle check-circle
check-square CheckSquare check-square
check Check check
chevron-down ChevronDown chevron-down
chevron-left ChevronLeft chevron-left
chevron-right ChevronRight chevron-right
chevron-up ChevronUp chevron-up
chevrons-down ChevronsDown chevrons-down
chevrons-left ChevronsLeft chevrons-left
chevrons-right ChevronsRight chevrons-right
chevrons-up ChevronsUp chevrons-up
chrome Chrome chrome
circle Circle circle
clipboard Clipboard clipboard
clock Clock clock
cloud-drizzle CloudDrizzle cloud-drizzle
cloud-lightning CloudLightning cloud-lightning
cloud-off CloudOff cloud-off
cloud-rain CloudRain cloud-rain
cloud-snow CloudSnow cloud-snow
cloud Cloud cloud
code Code code
codepen Codepen codepen
codesandbox Codesandbox codesandbox
coffee Coffee coffee
columns Columns columns
command Command command
compass Compass compass
copy Copy copy
corner-down-left CornerDownLeft corner-down-left
corner-down-right CornerDownRight corner-down-right
corner-left-down CornerLeftDown corner-left-down
corner-left-up CornerLeftUp corner-left-up
corner-right-down CornerRightDown corner-right-down
corner-right-up CornerRightUp corner-right-up
corner-up-left CornerUpLeft corner-up-left
corner-up-right CornerUpRight corner-up-right
cpu Cpu cpu
credit-card CreditCard credit-card
crop Crop crop
crosshair Crosshair crosshair
database Database database
delete Delete delete
disc Disc disc
dollar-sign DollarSign dollar-sign
download-cloud DownloadCloud download-cloud
download Download download
droplet Droplet droplet
edit-2 Edit2 edit-2
edit-3 Edit3 edit-3
edit Edit edit
external-link ExternalLink external-link
eye-off EyeOff eye-off
eye Eye eye
facebook Facebook facebook
fast-forward FastForward fast-forward
feather Feather feather
figma Figma figma
file-minus FileMinus file-minus
file-plus FilePlus file-plus
file-text FileText file-text
file File file
film Film film
filter Filter filter
flag Flag flag
folder-minus FolderMinus folder-minus
folder-plus FolderPlus folder-plus
folder Folder folder
frown Frown frown
gift Gift gift
git-branch GitBranch git-branch
git-commit GitCommit git-commit
git-merge GitMerge git-merge
git-pull-request GitPullRequest git-pull-request
github Github github
gitlab Gitlab gitlab
globe Globe globe
grid Grid grid
hard-drive HardDrive hard-drive
hash Hash hash
headphones Headphones headphones
heart Heart heart
help-circle HelpCircle help-circle
hexagon Hexagon hexagon
home Home home
image Image image
inbox Inbox inbox
info Info info
instagram Instagram instagram
italic Italic italic
key Key key
layers Layers layers
layout Layout layout
life-buoy LifeBuoy life-buoy
link-2 Link2 link-2
link Link link
linkedin Linkedin linkedin
list List list
loader Loader loader
lock Lock lock
log-in LogIn log-in
log-out LogOut log-out
mail Mail mail
map-pin MapPin map-pin
map Map map
maximize-2 Maximize2 maximize-2
maximize Maximize maximize
meh Meh meh
menu Menu menu
message-circle MessageCircle message-circle
message-square MessageSquare message-square
mic-off MicOff mic-off
mic Mic mic
minimize-2 Minimize2 minimize-2
minimize Minimize minimize
minus-circle MinusCircle minus-circle
minus-square MinusSquare minus-square
minus Minus minus
monitor Monitor monitor
moon Moon moon
more-horizontal MoreHorizontal more-horizontal
more-vertical MoreVertical more-vertical
mouse-pointer MousePointer mouse-pointer
move Move move
music Music music
navigation-2 Navigation2 navigation-2
navigation Navigation navigation
octagon Octagon octagon
package Package package
paperclip Paperclip paperclip
pause-circle PauseCircle pause-circle
pause Pause pause
pen-tool PenTool pen-tool
percent Percent percent
phone-call PhoneCall phone-call
phone-forwarded PhoneForwarded phone-forwarded
phone-incoming PhoneIncoming phone-incoming
phone-missed PhoneMissed phone-missed
phone-off PhoneOff phone-off
phone-outgoing PhoneOutgoing phone-outgoing
phone Phone phone
pie-chart PieChart pie-chart
play-circle PlayCircle play-circle
play Play play
plus-circle PlusCircle plus-circle
plus-square PlusSquare plus-square
plus Plus plus
pocket Pocket pocket
power Power power
printer Printer printer
radio Radio radio
refresh-ccw RefreshCcw refresh-ccw
refresh-cw RefreshCw refresh-cw
repeat Repeat repeat
rewind Rewind rewind
rotate-ccw RotateCcw rotate-ccw
rotate-cw RotateCw rotate-cw
rss Rss rss
save Save save
scissors Scissors scissors
search Search search
send Send send
server Server server
settings Settings settings
share-2 Share2 share-2
share Share share
shield-off ShieldOff shield-off
shield Shield shield
shopping-bag ShoppingBag shopping-bag
shopping-cart ShoppingCart shopping-cart
shuffle Shuffle shuffle
sidebar Sidebar sidebar
skip-back SkipBack skip-back
skip-forward SkipForward skip-forward
slack Slack slack
slash Slash slash
sliders Sliders sliders
smartphone Smartphone smartphone
smile Smile smile
speaker Speaker speaker
square Square square
star Star star
stop-circle StopCircle stop-circle
sun Sun sun
sunrise Sunrise sunrise
sunset Sunset sunset
tablet Tablet tablet
tag Tag tag
target Target target
terminal Terminal terminal
thermometer Thermometer thermometer
thumbs-down ThumbsDown thumbs-down
thumbs-up ThumbsUp thumbs-up
toggle-left ToggleLeft toggle-left
toggle-right ToggleRight toggle-right
trash-2 Trash2 trash-2
trash Trash trash
trello Trello trello
trending-down TrendingDown trending-down
trending-up TrendingUp trending-up
triangle Triangle triangle
truck Truck truck
tv Tv tv
twitter Twitter twitter
type Type type
umbrella Umbrella umbrella
underline Underline underline
unlock Unlock unlock
upload-cloud UploadCloud upload-cloud
upload Upload upload
user-check UserCheck user-check
user-minus UserMinus user-minus
user-plus UserPlus user-plus
user-x UserX user-x
user User user
users Users users
video-off VideoOff video-off
video Video video
voicemail Voicemail voicemail
volume-1 Volume1 volume-1
volume-2 Volume2 volume-2
volume-x VolumeX volume-x
volume Volume volume
watch Watch watch
wifi-off WifiOff wifi-off
wifi Wifi wifi
wind Wind wind
x-circle XCircle x-circle
x-octagon XOctagon x-octagon
x-square XSquare x-square
x X x
youtube Youtube youtube
zap-off ZapOff zap-off
zap Zap zap
zoom-in ZoomIn zoom-in
zoom-out ZoomOut zoom-out

FAQ

License

MIT © Michael Bazos