1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 14:34:19 +00:00
pds-2021-g2-nest/nest_frontend/components/base/Select.js

21 lines
625 B
JavaScript

import React from "react"
import Style from "./Select.module.css"
import classNames from "classnames"
/**
* A dropdown list.
*
* @param children - The contents of the dropdown list, which usually should be `<option>` or `<optgroup>` elements.
* @param className - Additional class(es) to add to the element.
* @param props - Additional props to pass to the element.
* @returns {JSX.Element}
* @constructor
*/
export default function Select({ children, className, ...props }) {
return (
<select className={classNames(Style.Select, className)} {...props}>
{children}
</select>
)
}