Skip to content

Write HTML. Render video. Built for agents.

1.4 KB
Raw Blame
{
  "$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
  "name": "input-feedback",
  "type": "hyperframes:component",
  "title": "Input Feedback",
  "description": "A transitions.dev-inspired input feedback primitive with shake, clear affordance, and success state",
  "tags": ["transition-primitive", "transitions-dev-port", "input", "feedback"],
  "files": [
    {
      "path": "input-feedback.html",
      "target": "compositions/components/input-feedback.html",
      "type": "hyperframes:snippet"
    }
  ],
  "variables": [
    {
      "id": "status",
      "type": "enum",
      "role": "style",
      "label": "Status",
      "description": "Whether the field reads as accepted or rejected, colouring the border, chip and hint.",
      "default": "valid",
      "options": [
        {
          "value": "valid",
          "label": "Valid"
        },
        {
          "value": "error",
          "label": "Error"
        }
      ]
    },
    {
      "id": "value",
      "type": "string",
      "role": "content",
      "label": "Value",
      "description": "Text held by the field.",
      "default": "[email protected]"
    },
    {
      "id": "hint",
      "type": "string",
      "role": "content",
      "label": "Hint",
      "description": "Helper line under the field.",
      "default": "Looks good."
    }
  ],
  "preview": {
    "poster": "https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/input-feedback.png"
  }
}