Popup API Overview
Initialization
import { Popup } from "@svar-ui/react-core";
// minimal configuration for initialization
function Example() {
return (
<Popup>
<p>Some text here and there</p>
</Popup>
);
}
tip
- Visit the Features Guide to learn more about the control's functionality.
- Explore the samples to visualize the available features.
Popup Properties
at | Optional. Defines the alignment or anchor point of a popup relative to its parent element |
left | Optional. Sets the left offset of a popup in pixels |
parent | Optional. An HTML element relative to which the popup will be positioned |
top | Optional. Sets the top offset of a popup in pixels |
Popup Events
onCancel | Sets the function that closes a popup |