Components
PopoverDismiss
Code

PopoverDismiss

PopoverDismiss(props): null | ReactElement<any, string | JSXElementConstructor<any>>

Dismiss the Popover

Parameters

NameType
propsPopoverDismissProps & RefAttributes<HTMLButtonElement (opens in a new tab)>

Returns

null | ReactElement<any, string | JSXElementConstructor<any>>

Example

<PopoverProvider>
  <Popover>
    <PopoverDismiss>Dismiss</PopoverDismiss>
  </Popover>
</PopoverProvider>
import React from 'react'
import { PopoverProvider } from '@vtex/shoreline-components'
import { Popover } from '@vtex/shoreline-components'
import { PopoverDismiss } from '@vtex/shoreline-components'
export default function App() { return (<><PopoverProvider> <Popover>   <PopoverDismiss>Dismiss</PopoverDismiss> </Popover></PopoverProvider></>)}

Defined in

node_modules/.pnpm/@types+react@18.2.14/node_modules/@types/react/ts5.0/index.d.ts:355