implement select
This commit is contained in:
17
library/core/components/option.tsx
Normal file
17
library/core/components/option.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import React from "react"
|
||||
import { ReacordElement } from "../../internal/element"
|
||||
import { OptionNode } from "./option-node"
|
||||
|
||||
export type OptionProps = {
|
||||
label?: string
|
||||
children?: string
|
||||
value: string
|
||||
description?: string
|
||||
emoji?: string
|
||||
}
|
||||
|
||||
export function Option(props: OptionProps) {
|
||||
return (
|
||||
<ReacordElement props={props} createNode={() => new OptionNode(props)} />
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user