Skip to content
Accessibility: Full
Translations: Not Needed
Migration Guide: Not Needed

Icon

Icon wrapper.

Basic Usage

Vue
html
<template>
  <HLIcon id="example-icon" size="28" color="#26a6a6"><UserPlus01Icon /></HLIcon>
</template>

<script setup lang="ts">
  import { HLIcon } from '@platform-ui/highrise'
  import { UserPlus01Icon } from '@gohighlevel/ghl-icons/24/outline'
</script>

Accessibility

  • Icons that convey meaning must set aria-label / title or rely on surrounding text via aria-labelledby; decorative icons should include aria-hidden="true".
  • When an icon stands alone (for example, inside a button), set role="img" so the accessible name is announced once.

Imports

ts
import { HLIcon } from '@platform-ui/highrise'
import { UserPlus01Icon } from '@gohighlevel/ghl-icons/24/outline'

Props

NameTypeDefaultDescription
id *string | undefinedundefinedThe unique identifier of the element
sizestring | number'16'Icon size.
colorstring | undefinedundefinedIcon color.
Accepts hex ('#FFF'), RGB/RGBA ('rgb(255, 0, 0)'), CSS colors ('red'), or CSS variables ('var(--primary-500)')

Slots

NameParametersDescription
default()The default slot