# Ocelot.Social Documentation

Skip to main content

- Introduction
- Neo4J

- Backend

  - GraphQL
  - neo4j-graphql-js

- Webapp (Frontend)

  - Components
  - HTML
  - SCSS
  - Vue

- Testing Guide

  - End-to-end Tests
  - Webapp (Frontend) Tests
  - Backend Tests
- Deployment
- Contributing
- Feature Specification
- Code of Conduct
- Documentation
- License

#

April 5, 2026
Less than 1 minute

On This Page

- Basic usage
- Usage with label
- Bind to a value
- Style variations
- Validation

## Basic usage

    <ds-radio :options="['blue', 'red', 'green']" />

## Usage with label

    <ds-radio
      label="Color"
      :options="['blue', 'red', 'green']" />

## Bind to a value

Use v-model to bind a value to the select input.

    <template>
      <div>
        <ds-radio
          v-model="color"
          :options="['blue', 'red', 'green']"
          placeholder="Color ..."></ds-radio>
        <ds-text>Your color: {{ color }}</ds-text>
      </div>
    </template>
    <script>
      export default {
        data() {
          return {
            color: 'blue'
          }
        }
      }
    </script>

## Style variations

    <ds-radio
      label="Color"
      :options="['blue', 'red', 'green']"
      buttons />

## Validation

We use async-validator schemas for validation.

If you need to validate more than one field it is better to use the form component.

    <template>
      <div>
        <ds-radio
          v-model="color"
          :options="['blue', 'red', 'green']"
          :schema="{type: 'enum', enum: ['green'], message: 'Please choose green :)' }"
          placeholder="Color ..." />
      </div>
    </template>
    <script>
      export default {
        data() {
          return {
            color: ''
          }
        }
      }
    </script>