AgentLayerZero Playground

<ModelLoader />

Loading screen for the model download phase. Spinner ring around a brain → logo cross-fade keyed off percent: brain occupies 0–50%, logo fades in from 50–100%. Dendrite's onProgress callback drives the values; this demo cycles through fake progress to show the animation.

<script setup lang="ts">
import { useNeuron, ModelLoader } from '@agent-layer-zero/dendrite-vue'

const { isLoading, loadPercent, loadText } = useNeuron({
  modelId: 'gemma-2-2b-it-q4f16_1-MLC',
})
</script>

<template>
  <ModelLoader
    v-if="isLoading"
    :percent="loadPercent"
    :text="loadText"
    logo-src="/your-logo.png"
    brain-src="/brain.svg"
  />
</template>