Import
import {
NuiHovercard,
NuiHovercardTrigger,
NuiPopover,
NuiPopoverTrigger,
} from '@needless-ui/angular/popover';NuiPopover
A native popover placed next to the element that opened it.
| Name | Type | Default | Description |
|---|---|---|---|
sideInput | 'top' | 'bottom' | 'start' | 'end' | 'bottom' | The side of the trigger it opens on. It flips when there is no room. |
alignInput | 'start' | 'center' | 'end' | 'start' | How it lines up with the trigger along that side. |
offsetInput | number | 8 | Gap between the trigger and the panel, in pixels. |
arrowInput | boolean | false | Shows an arrow that points at the trigger. |
enterInput | NuiEnter | How it arrives: zoom, fade, drop, rise, unfold, flip, swing, slide or none. | |
motionInput | NuiMotion | The spring it moves with: snappy, bouncy, jelly, elastic, lazy, mechanical or none. | |
springInput | NuiSpring | Any spring, as { stiffness, damping, mass }, compiled to CSS at runtime. It overrides motion. | |
cornersInput | NuiCorners | The shape of its corners: round, squircle, bevel, scoop, notch or square. | |
radiusInput | NuiRadius | How big its corners are: none, small, medium, large or full. | |
densityInput | NuiDensity | How much room it takes: compact, regular or roomy. | |
openChangeOutput | boolean | Emits when it opens or closes. | |
showMethod | (anchor: HTMLElement) => void | Opens it next to any element. | |
hideMethod | () => void | Closes it. |
Customization inputs you leave unset follow the nearest data-nui-* attribute. See the customization guide.
NuiPopoverTrigger
A button that opens and closes a popover, with the native popovertarget.
| Name | Type | Default | Description |
|---|---|---|---|
nuiPopoverTriggerInput | NuiPopover | The popover to open. |
NuiHovercard
A rich tooltip that describes its trigger.
| Name | Type | Default | Description |
|---|---|---|---|
sideInput | 'top' | 'bottom' | 'start' | 'end' | 'bottom' | The side of the trigger it opens on. It flips when there is no room. |
alignInput | 'start' | 'center' | 'end' | 'start' | How it lines up with the trigger along that side. |
offsetInput | number | 8 | Gap between the trigger and the card, in pixels. |
arrowInput | boolean | false | Shows an arrow that points at the trigger. |
openDelayInput | number | 500 | Milliseconds of hover before it opens. Keyboard focus opens it at once. |
closeDelayInput | number | 300 | Milliseconds before it closes, once the pointer has left. |
enterInput | NuiEnter | How it arrives: zoom, fade, drop, rise, unfold, flip, swing, slide or none. | |
motionInput | NuiMotion | The spring it moves with: snappy, bouncy, jelly, elastic, lazy, mechanical or none. | |
springInput | NuiSpring | Any spring, as { stiffness, damping, mass }, compiled to CSS at runtime. It overrides motion. | |
cornersInput | NuiCorners | The shape of its corners: round, squircle, bevel, scoop, notch or square. | |
radiusInput | NuiRadius | How big its corners are: none, small, medium, large or full. | |
densityInput | NuiDensity | How much room it takes: compact, regular or roomy. | |
openChangeOutput | boolean | Emits when it opens or closes. | |
showMethod | (anchor: HTMLElement) => void | Opens it next to any element. | |
hideMethod | () => void | Closes it. |
Customization inputs you leave unset follow the nearest data-nui-* attribute. See the customization guide.
NuiHovercardTrigger
Shows a hovercard on hover and on keyboard focus, and makes it this element’s description.
| Name | Type | Default | Description |
|---|---|---|---|
nuiHovercardTriggerInput | NuiHovercard | The hovercard to show. |