1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-24 20:44:21 +00:00
bluelib/src/components/inputs/Option.tsx

24 lines
537 B
TypeScript
Raw Normal View History

2021-08-19 17:54:58 +00:00
import * as React from "react"
import * as ReactDOM from "react-dom"
import * as Types from "../../types"
import {BaseElement} from "../BaseElement"
import mergeClassNames from "classnames"
interface OptionProps {
label: string,
[props: string]: any,
}
export function Option({label, ...props}: OptionProps): JSX.Element {
props.bluelibClassNames = mergeClassNames(props.bluelibClassNames, "input-option")
return (
<BaseElement kind={"option"} {...props}>
{label}
</BaseElement>
)
}