MCPcopy Index your code
hub / github.com/primer/react / DefaultFooter

Function DefaultFooter

packages/react/src/Dialog/Dialog.tsx:375–385  ·  view source on GitHub ↗
({footerButtons})

Source from the content-addressed store, hash-verified

373 return <Dialog.Body>{children}</Dialog.Body>
374}
375const DefaultFooter: React.FC<React.PropsWithChildren<DialogProps>> = ({footerButtons}) => {
376 const {containerRef: footerRef} = useFocusZone({
377 bindKeys: FocusKeys.ArrowHorizontal | FocusKeys.Tab,
378 focusInStrategy: 'closest',
379 })
380 return footerButtons ? (
381 <Dialog.Footer ref={footerRef as React.RefObject<HTMLDivElement>}>
382 <Dialog.Buttons buttons={footerButtons} />
383 </Dialog.Footer>
384 ) : null
385}
386
387const defaultPosition = {
388 narrow: 'center',

Callers

nothing calls this directly

Calls 1

useFocusZoneFunction · 0.90

Tested by

no test coverage detected