master @ 8 LINES
[ HISTORY ] [ UP ]
┌─ ASTRO ────────────────────────────────────────────────────────────────────┐
│ --- │
│ import type { Props } from "./Radio"; │
│ import "./Radio.scss"; │
│ │
│ const { label, name, value, checked = false, disabled = false } = Astro.props as P │
│ rops; │
│ --- │
│ <label class="radio"><input type="radio" name={name} value={value} checked={checke │
│ d} disabled={disabled} /><span class="radio-mark" aria-hidden="true"></span>{" " + │
│ label}</label> │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ASTRO ──────────────────────────────┐
│ --- │
│ import type { Props } from "./Radio"; │
│ import "./Radio.scss"; │
│ │
│ const { label, name, value, checked = false, │
│ disabled = false } = Astro.props as Props; │
│ --- │
│ <label class="radio"><input type="radio" nam │
│ e={name} value={value} checked={checked} dis │
│ abled={disabled} /><span class="radio-mark" │
│ aria-hidden="true"></span>{" " + label}</lab │
│ el> │
└──────────────────────────────────────────────┘
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET