DropdownForm.tsx 523 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
import React from "react";
import { DropdownType } from "../types";

type Props = {
  element: DropdownType;
};

export const QDropdown = ({ element }: Props) => {
  return (
jang dong hyeok's avatar
.    
jang dong hyeok committed
10
11
12
13
14
15
16
17
18
19
20
    <div id="commentarea" className="flex mt-4">
      {element.content.choices.map((e: any) => (
        <div>
          <input type="checkbox" checked={false}></input>
          <input
            type="text"
            className="mx-2 border-b-2"
            placeholder={e.text}
          ></input>
        </div>
      ))}
21
22
23
    </div>
  );
};