라디오

list column

<%- include(`${_src}/views/components/form/input-radio.ejs`, {
  variant: '',        // 최상위 클래스 추가할 떄
  name: 'rdo1',
  list: 'column',
  gap: 16,
  datas: [
    {
      text: '낱개',
      value: '1',
      qty: 1,
      price: 4150,
      checked: false,  // 기본값 false (true일 때만 기입해도 됨)
      disabled: false, // 기본값 false (true일 때만 기입해도 됨)
      required: false, // 기본값 false (true일 때만 기입해도 됨)
    },
    {
      text: '대포장',
      value: '250',
      qty: 250,
      price: 103750,
      checked: false,  // 기본값 false (true일 때만 기입해도 됨)
      disabled: false, // 기본값 false (true일 때만 기입해도 됨)
      required: false, // 기본값 false (true일 때만 기입해도 됨)
    },
  ]
}) %>
          

list row

<%- include(`${_src}/views/components/form/input-radio.ejs`, {
  variant: '',
  name: 'rdo1',
  list: 'row',
  gap: 18,
  datas: [
    {
      text: '낱개',
      value: '1',
      checked: false,
      disabled: false,
      required: false,
    },
    {
      text: '대포장',
      value: '250',
      checked: false,
      disabled: false,
      required: false,
    },
  ]
}) %>
          

single (단일 라디오)

<%- include(`${_src}/views/components/form/input-radio-single.ejs`, {
  name: 'tax-invoice',        // 라디오 그룹 이름
  id: 'tax-invoice-single',    // 라디오 버튼 ID
  value: 'single',             // 라디오 버튼 값
  text: '개별 발급',            // 라디오 버튼 레이블 텍스트
  checked: false,              // 기본값 false (true일 때만 기입해도 됨)
  disabled: false,             // 기본값 false (true일 때만 기입해도 됨)
  required: false,             // 기본값 false (true일 때만 기입해도 됨)
  ariaControls: 'panel-transfer' // aria-controls 속성 (선택사항)
}) %>
          

checked 예제

disabled 예제