Setup

Run the following command to install and add the module to your project:

Aside #1: I know I'm being preferential in my choice of package managers.

Aside #2: This module supports any case for the component name.

Congratulations 🎉, you can now browse bootstrap-icons for icons to use in your project!

Configuration

You can configure the module using the bootstrapIcons key in your nuxt.config

Options


display

  1. Default: inline
  2. Description: How should the module register the icons?

Note: When using inline, the module will register a component (depending on your prefix)

Note: When using component, the module will register all icons from bootstrap-icons as components (including the prefix)

prefix

  1. Default: bootstrap-icon
  2. Description: What should be prefixed to the icons?

Tip: if you have a multi word prefix, you should include a — between the words.

showList

  1. Default: false
  2. Description: Option: enable to add a virtual JSON file containing all the icons registered at path #build/nuxt-bootstrap-icons.json