Skip to main content

css

Description

Optional. Adds a custom CSS class to a popup

Usage

css?: string;

Example

<Popup top={300} left={300} css="my-popup">
<div class="popup">
<p>Some text here and there</p>
</div>
</Popup>

<style>
.my-popup {
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
</style>

Related article: Styling popup