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

24 lines
544 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"
export interface OptionProps {
value: string,
2021-08-19 17:54:58 +00:00
[props: string]: any,
}
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}>
{value}
2021-08-19 17:54:58 +00:00
</BaseElement>
)
}