X Enterprises
nuxt-x-affiliate

How To

Numbered-step "How to" article with HowTo schema.org JSON-LD auto-emission.

How To

The XAFHowTo component renders a numbered-step instructional article (e.g. "How to clean your mechanical keyboard") with optional tools / supplies lists and time + cost metadata. Auto-emits a HowTo schema.org JSON-LD payload so Google can show rich results.

Components

<XAFHowTo />

<XAFHowTo
  name="How to deep-clean a mechanical keyboard"
  description="A 30-minute routine that brings switches back to like-new feel."
  total-time="PT30M"
  estimated-cost="USD 10"
  :tools="['Keycap puller', 'Compressed air', 'Isopropyl alcohol']"
  :supplies="['Microfiber cloth', 'Cotton swabs']"
  :steps="[
    { name: 'Unplug and photograph', text: 'Unplug the keyboard. Take a photo of the layout so you can re-seat keycaps correctly.' },
    { name: 'Remove keycaps', text: 'Use the keycap puller to gently lift each keycap straight up. Set them in a bowl of soapy water.' },
    { name: 'Clean the plate', text: 'Spray compressed air across the plate. Wipe down with isopropyl alcohol on a microfiber cloth.' },
  ]"
/>

Props

PropTypeDefaultDescription
namestringrequiredTitle (used in schema).
descriptionstringrequiredShort description (used in schema).
stepsHowToStep[]requiredEach step: { name, text, image? }.
totalTimestringISO 8601 duration (e.g. "PT30M").
estimatedCoststring"USD 10" style — splits on the space to build a MonetaryAmount.
toolsstring[]Tools required.
suppliesstring[]Supplies required.

AI Context

component: XAFHowTo
package: "@xenterprises/nuxt-x-affiliate"
use-when: Numbered-step "How to" article with auto-emission of HowTo schema.org JSON-LD for rich results.
Copyright © 2026