import Popup from '@precursor/popup';Example
Changes are saved automatically.
import Popup from '@precursor/popup';
import Button from '@precursor/button';
export default function Example() {
return (
<>
<Button popoverTarget="details-popup">Details</Button>
<Popup id="details-popup" label="Details">
<p>Changes are saved automatically.</p>
</Popup>
</>
);
}
Props
| Prop | Type | Default | Notes |
|---|---|---|---|
idRequired | string | — | — |
label | string | — | — |
childrenRequired | ReactNode | — | — |