# Dither Gradient

> A dithered gradient effect rendered on canvas with customizable colors and animation.

<demo-dither-gradient>



</demo-dither-gradient>

## Installation

```bash
npx shadcn-vue@latest add "https://nxui.geoql.in/r/dither-gradient.json"
```

## Usage

```vue
<script setup lang="ts">
  import DitherGradient from '~/components/ui/dither-gradient/DitherGradient.vue';
</script>

<template>
  <DitherGradient class="h-75 w-full" />
</template>
```

## Props

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        color-from
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <code>
        '#7c3aed'
      </code>
    </td>
    
    <td>
      Starting color of the gradient
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        color-to
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <code>
        '#06b6d4'
      </code>
    </td>
    
    <td>
      Ending color of the gradient
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        angle
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        135
      </code>
    </td>
    
    <td>
      Angle of the gradient in degrees
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        class
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Additional CSS classes for the container
    </td>
  </tr>
</tbody>
</table>
