Meet Frontfriend.Your brand. Your rules. Your agents, connected.Explore what’s new

Icon

A graphical element used to display icons within the UI, customizable in size and color, and integrable into various components.

Interactive preview

Rendered from the shared Frontfriend stories with React Base, the same preview Studio shows. Styling comes from your Design System; the code below is native to Reka UI.

Installation

Complete project setup first. Your configuration must select vue/reka and include your Design System ID.

pnpm exec frontfriend download icon -f vue --primitive reka

Review dependencies reported by the downloader and keep your source changes in version control.

Usage

<script setup lang="ts">
import { Icon } from "@/components/ui/icon";
import * as UI from "@/components/ui/icon";

const Component = UI.Icon;

const args = {
  "name": "CircleDashed",
  "size": "4",
} satisfies Partial<
  InstanceType<typeof Component> extends { $props: infer Props } ? Props : {}
> &
  Record<string, unknown> & {
    size?: "4" | "5" | "6" | "8" | "10" | "12" | "16" | "20" | "24";
  };
</script>

<template>
  <Icon v-bind="args" />
</template>

Examples

Default

<script setup lang="ts">
import { Icon } from "@/components/ui/icon";
import * as UI from "@/components/ui/icon";

const Component = UI.Icon;

const args = {
  "name": "CircleDashed",
  "size": "4",
} satisfies Partial<
  InstanceType<typeof Component> extends { $props: infer Props } ? Props : {}
> &
  Record<string, unknown> & {
    size?: "4" | "5" | "6" | "8" | "10" | "12" | "16" | "20" | "24";
  };
</script>

<template>
  <Icon v-bind="args" />
</template>

Custom

<script setup lang="ts">
import { Icon } from "@/components/ui/icon";
import * as UI from "@/components/ui/icon";

const Component = UI.Icon;

const args = {
  "name": "IconDay",
  "size": "4",
} satisfies Partial<
  InstanceType<typeof Component> extends { $props: infer Props } ? Props : {}
> &
  Record<string, unknown> & {
    size?: "4" | "5" | "6" | "8" | "10" | "12" | "16" | "20" | "24";
  };
</script>

<template>
  <Icon v-bind="args" />
</template>

API reference

Frontfriend-owned props. Native HTML and inherited primitive props remain documented by Reka UI.

Prop Type Default Description
class string —
color string —
name string —
size string —

Configuration determines the actual classes and available styling hooks. See Theming & component configuration before introducing a repeated local override.