@@ -25,7 +25,7 @@ import React from 'react'
2525import PropTypes from 'prop-types'
2626
2727import { element } from '@instructure/ui-prop-types'
28- import { ThemeablePropTypes } from '@instructure/emotion'
28+ import { ThemeablePropTypes , BorderWidth } from '@instructure/emotion'
2929import { PositionPropTypes } from '@instructure/ui-position'
3030
3131import type { Shadow , Stacking , WithStyleProps } from '@instructure/emotion'
@@ -275,6 +275,11 @@ type PopoverOwnProps = {
275275 * Provides a reference to the underlying HTML root element
276276 */
277277 elementRef ?: ( element : Element | null ) => void
278+ /**
279+ * Accepts the familiar CSS shorthand to designate border widths corresponding
280+ * to edges. Only applies to a Popover without an arrow.
281+ */
282+ borderWidth ?: BorderWidth
278283}
279284
280285type PopoverProps = PopoverOwnProps &
@@ -344,7 +349,8 @@ const propTypes: PropValidators<PropKeys> = {
344349 onMouseOut : PropTypes . func ,
345350 renderTrigger : PropTypes . oneOfType ( [ PropTypes . node , PropTypes . func ] ) ,
346351 children : PropTypes . oneOfType ( [ PropTypes . node , PropTypes . func ] ) ,
347- elementRef : PropTypes . func
352+ elementRef : PropTypes . func ,
353+ borderWidth : ThemeablePropTypes . borderWidth
348354}
349355
350356const allowedProps : AllowedPropKeys = [
@@ -389,7 +395,8 @@ const allowedProps: AllowedPropKeys = [
389395 'onMouseOut' ,
390396 'renderTrigger' ,
391397 'children' ,
392- 'elementRef'
398+ 'elementRef' ,
399+ 'borderWidth'
393400]
394401
395402export type { PopoverOwnProps , PopoverProps , PopoverState , PopoverStyle }
0 commit comments