Nuxt

Nuxt

Use Rivo Icons in your Nuxt project with @rivo-icons/nuxt.


Installation

npm install @rivo-icons/nuxt

Configuration

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@rivo-icons/nuxt'],
})

Usage

The Nuxt module auto-imports all icons as global components. No import statement is needed anywhere. Icons are prefixed with Icon: e.g. Setting<IconSetting />.

<!-- No import needed — all icons are auto-imported -->
<template>
  <IconSetting />
  <IconDollar :size="32" />
  <IconClock :size="20" color="#6366f1" />
</template>

Props

PropTypeDefaultDescription
sizenumber | string24Width and height in px
colorstringcurrentColorStroke / fill color
strokeWidthnumber | string1.5Stroke width (outline icons)
classstringCSS class attribute

TypeScript

All props are fully typed. Icon components extend a shared IconProps interface:

interface IconProps {
  size?: number | string
  color?: string
  strokeWidth?: number | string
  className?: string  // React / Solid
}