InfoBox

A quiet information surface for notes and supporting guidance.

Installation

npx alixan-ui-nuxt add info-box

Usage

Use InfoBox to separate helpful context from the main content.

<script setup lang="ts">
import InfoBox from '@/components/ui/info-box/InfoBox.vue'
</script>

<template>
  <InfoBox>{{ $t('componentDocs.infoBox.demo') }}</InfoBox>
</template>

Use InfoBox to separate helpful context from the main content.

<script setup lang="ts">
import { CircleHelp } from '@lucide/vue';
import InfoBox from '@/components/ui/info-box/InfoBox.vue';
</script>

<template>
  <InfoBox :icon="CircleHelp">{{ $t('componentDocs.infoBox.demo') }}</InfoBox>
</template>

API Reference

PropTypeDefaultDescription
iconComponent | nullnullOptional icon component displayed before the content.
defaultslot-Informational content rendered in the surface.