add JSX components v2
This commit is contained in:
parent
b5dd0ed413
commit
4b1227149f
25 changed files with 1080 additions and 3 deletions
12
components-jsx/TextInput.tsx
Normal file
12
components-jsx/TextInput.tsx
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { ComponentTypes, TextInput } from "oceanic.js";
|
||||
|
||||
export { TextInputStyles } from "oceanic.js";
|
||||
|
||||
export type TextInputProps = Omit<TextInput, "type">;
|
||||
|
||||
export function TextInput(props: TextInputProps): TextInput {
|
||||
return {
|
||||
type: ComponentTypes.TEXT_INPUT,
|
||||
...props
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue