Bind open and handle accepted or rejected by closing the surface. Unlike a dropdown, this confirmation is not a column filter or a tooltip. The application decides what acceptance means; Core never executes your destructive action. Use localized title, message and action labels.
Bind open and handle accepted or rejected by closing the surface. Unlike a dropdown, this confirmation is not a column filter or a tooltip. The application decides what acceptance means; Core never executes your destructive action. Use localized title, message and action labels.
Inputs, models and Outputs are extracted from the installed Core package. Named public types link to their definitions. Templates below include executable examples.
Inputs
Configure the component with [property]="value". Your application supplies these values; the component does not replace the state you pass in.
Name
Type
Default
Template binding
Description
acceptLabel
string
'Confirm'
[acceptLabel]
Visible name of the confirmation or cancellation action.
message
string
''
[message]
Confirmation message describing the action to accept or cancel.
open
boolean
false
[open]
Application-owned visibility. Apply false when the requested dismissal is accepted.
rejectLabel
string
'Cancel'
[rejectLabel]
Visible name of the confirmation or cancellation action.
title
string
''
[title]
Optional visible title above projected content.
Outputs
Listen to an event with (event)="handler($event)". The table explains the data your handler receives and how to use it.
Name
Payload
Template binding
Description
accepted
void
(accepted)="onAccepted($event)"
Reports the confirmation decision. Close the applied open state in the handler.
rejected
void
(rejected)="onRejected($event)"
Reports the confirmation decision. Close the applied open state in the handler.
Templates
ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.
This component does not expose content projection or public customization templates.
Use the supported public tokens listed below. Surrounding layout belongs to your application; validate the result in light and dark modes and narrow containers.
Specific tokens
This component uses shared theme tokens rather than dedicated component hooks.
Shared tokens used
Override these on a local wrapper to affect this example. An override on :root affects other components that use the same token.
Token
Purpose here
Other impact
Default / fallback
--neu-border
Normal control and cell borders
Shared by other Core consumers; scope the override.
rgba(15, 23, 42, 0.08)
--neu-surface
Main field, header or control surface
Shared by other Core consumers; scope the override.
#ffffff
--neu-text
Main text and inherited icon color
Shared by other Core consumers; scope the override.
#0f172a
--neu-text-muted
Secondary labels and supporting content
Shared by other Core consumers; scope the override.
#475569
--neu-shadow-lg
Surface or overlay elevation
Shared by other Core consumers; scope the override.