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"
|
|
|
|
|
|
|
|
|
2021-08-24 02:22:15 +00:00
|
|
|
export interface OptionProps {
|
|
|
|
value: string,
|
2021-08-19 17:54:58 +00:00
|
|
|
|
|
|
|
[props: string]: any,
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-08-24 02:22:15 +00:00
|
|
|
export function Option({value, ...props}: OptionProps): JSX.Element {
|
2021-08-19 17:54:58 +00:00
|
|
|
props.bluelibClassNames = mergeClassNames(props.bluelibClassNames, "input-option")
|
|
|
|
|
|
|
|
return (
|
|
|
|
<BaseElement kind={"option"} {...props}>
|
2021-08-24 02:22:15 +00:00
|
|
|
{value}
|
2021-08-19 17:54:58 +00:00
|
|
|
</BaseElement>
|
|
|
|
)
|
|
|
|
}
|