Usage
Using Vue

Using Vue #

Integrating Houston Icons into your Vue project is straightforward. This page will guide you through the process of using Houston Icons Vue components in your application.

Import an Icon #

Once installed, you can import icons directly into your Vue components:

import { Home01Icon } from '@houstonicons/vue'

Rendering an Icon #

To render an icon, simply use it as a Vue component:

<script setup="ts">import {Home01Icon} from '@houstonicons/vue';</script>
<template><home-01-icon color="navy" size="32" variant="duotone" type="rounded" /></template>

In the example above, the Home01Icon component is included in a function component with a custom size and color.

Customizing Icons #

You can customize icons further by using the variant and type properties:

<home-01-icon color="navy" size="32" variant="duotone" type="rounded" />

By following these steps, you can effectively utilize Houston Icons in your Vue application, enhancing your project's design with beautiful icons.

This guide covers the basics of using the Houston Icons package with Vue: installation, importing, rendering, and customizing icons. Adjust the code examples to fit the exact syntax and usage patterns of the @houstonicons/vue package.

Last updated on