gluestack

gluestack Logogluestack

Anyway to make MenuItem not look like a button?

_dinglar posted this in #support
Open in Discord
Avatar
_dinglarOP
I want a DateTimePicker component inside a MenuItem, but it acts like a button, which is not necessary in my case. This is my code:
<Menu placement="top" offset={5} trigger={({ ...triggerProps }) => { return ( <Button {...triggerProps}> <ButtonText> {meetingDate.toLocaleString()} </ButtonText> </Button> ); }} > <MenuItem key="datetime" textValue="datetime"> <DateTimePicker mode="single" date={meetingDate} onChange={({ date }) => { setMeetingDate(date as Date); }} /> </MenuItem> </Menu>
Image
Image

1 Reply