mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-24 20:44:21 +00:00
24 lines
537 B
TypeScript
24 lines
537 B
TypeScript
|
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>
|
||
|
)
|
||
|
}
|