mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
* tip tap version 2 * youtube * menu-bar * refactorng layout * fixed flex layout * fixed flex layout * a lot of ui fixes * optimizing flex layout & styling inputs * markdown styling * fix linting * updated snapshots * layout optimization * flex layout optimizations, text editor fine tuning and markdown rendering * updated snapshots --------- Co-authored-by: Anton Tranelis <mail@antontranelis.de> Co-authored-by: Anton Tranelis <31516529+antontranelis@users.noreply.github.com>
30 lines
520 B
TypeScript
30 lines
520 B
TypeScript
import { TextInput } from '#components/Input'
|
|
|
|
import type { Item } from '#types/Item'
|
|
|
|
/**
|
|
* @category Map
|
|
*/
|
|
export const PopupTextInput = ({
|
|
dataField,
|
|
placeholder,
|
|
style,
|
|
item,
|
|
}: {
|
|
dataField: string
|
|
placeholder: string
|
|
style?: string
|
|
item?: Item
|
|
}) => {
|
|
return (
|
|
<TextInput
|
|
defaultValue={item?.name ? item.name : ''}
|
|
dataField={dataField}
|
|
placeholder={placeholder}
|
|
inputStyle={style}
|
|
type='text'
|
|
containerStyle={'tw:mt-4 tw:mb-2'}
|
|
></TextInput>
|
|
)
|
|
}
|