mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
add PopupTextInput Component
This commit is contained in:
parent
542d9d7f39
commit
c27dfcd09b
@ -1,7 +1,16 @@
|
|||||||
import * as React from 'react'
|
import * as React from 'react'
|
||||||
|
import { TextInput } from '../../../Input'
|
||||||
|
import { Item } from '../../../../types'
|
||||||
|
|
||||||
export const PopupTextInput = () => {
|
export const PopupTextInput = ({ dataField, placeholder, style, item }:
|
||||||
return (
|
{
|
||||||
<div>PopupTextInput</div>
|
dataField: string,
|
||||||
)
|
placeholder: string,
|
||||||
|
style?: string,
|
||||||
|
item?: Item
|
||||||
|
}) => {
|
||||||
|
|
||||||
|
return (
|
||||||
|
<TextInput defaultValue={item?.text ? item.text : ""} dataField={dataField} placeholder={placeholder} inputStyle={style}></TextInput>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
export { UtopiaMap, Layer, Tags, Permissions, ItemForm, ItemView, PopupTextAreaInput, PopupStartEndInput, TextView, StartEndView } from './Components/Map';
|
export { UtopiaMap, Layer, Tags, Permissions, ItemForm, ItemView, PopupTextAreaInput, PopupStartEndInput, PopupTextInput, TextView, StartEndView } from './Components/Map';
|
||||||
export {AppShell, Content, SideBar} from "./Components/AppShell"
|
export {AppShell, Content, SideBar} from "./Components/AppShell"
|
||||||
export {AuthProvider, useAuth, LoginPage, SignupPage} from "./Components/Auth"
|
export {AuthProvider, useAuth, LoginPage, SignupPage} from "./Components/Auth"
|
||||||
export {Settings} from './Components/Profile'
|
export {Settings} from './Components/Profile'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user