🎲 StatField

A stat generation input field based on DiceRoller

Try It Out

Roll for a character stat right here in your browser

Features

🎲

Dice-Only Input

Values come exclusively from dice rolls, not manual entry

🎯

Smart Validation

Min/max ranges with automatic validation and error messages

🎨

Themeable

CSS variables for complete color customization

📊

Roll Details

Optional display of individual die results and modifiers

🎭

All Dice Types

Support for d4, d6, d8, d10, d12, d20, and d100

Vuetify-Style Events

Full event system compatible with Vuetify patterns

🔢

Modifiers

Support for +/- modifiers (e.g., "2d6+3")

📱

Responsive

Compact and inline variants for any layout

🎮

Perfect for RPGs

Built specifically for D&D, Pathfinder, and tabletop games

Installation

Vue Component

Ready-to-use Vue 3 component for character stat generation

npm install @stat-field/vue

Usage:

<template>
  <VStatField
    v-model="strength"
    die="3d6"
    label="Strength"
    :min="3"
    :max="18"
    show-details
  />
</template>

<script setup>
import { ref } from 'vue';
import { VStatField } from '@stat-field/vue';

const strength = ref(null);
</script>