Icon api

Overview
API
Theme
Examples

NbIconComponent

Inputs

NameTypeDescription
iconstring

Icon name

options

Additional icon settings

packstring

Icon pack name

statusNbComponentOrCustomStatus

Icon status (adds specific styles): basic, primary, info, success, warning, danger, control

NbIconLibraries

Methods

NameDescription
getFontIcon()
parameters: name: string, pack: string
returns:NbIconDefinition

Returns Font icon

getIcon()
parameters: name: string, pack: string
returns:

Returns an icon

getPack()
parameters: name: string
returns:NbIconPack

Returns pack by name

getSvgIcon()
parameters: name: string, pack: string
returns:

Returns Svg icon

registerFontPack()
parameters: name: string, params:
returns:void

Registers new font pack

registerSvgPack()
parameters: name: string, icons: NbIcons, params:
returns:void

Registers new Svg icon pack

setDefaultPack()
parameters: name: string
returns:void

Sets pack as a default

Alert
Previous page
Spinner
Next page

Need some help or found an issue?

Ask on Stack Overflow with tag `nebular` or post an issue on GitHub.