@momentum-ui/react
Version:
Cisco Momentum UI framework for ReactJs applications
21 lines (20 loc) • 453 B
JavaScript
import React from 'react';
import {
Button,
Popover
} from '@momentum-ui/react';
export default function PopoverContained() {
const tall = (
<span key="1" style={{ height: '3000px' }}>Popover(height: 3000px)</span>
);
return (
<Popover
isContained
content={tall}
direction={'bottom-center'}
popoverTrigger={'Click'}
>
<Button id='contained' children='Tall' ariaLabel='Tall' />
</Popover>
);
}