Function
DialogCloseIcon
({ className, ...props }: CloseButtonIndicatorProps)
Source from the content-addressed store, hash-verified
| 120 | } |
| 121 | |
| 122 | const DialogCloseIcon = ({ className, ...props }: CloseButtonIndicatorProps) => { |
| 123 | return props.isDismissable ? ( |
| 124 | <PrimitiveButton |
| 125 | slot="close" |
| 126 | className={cx( |
| 127 | 'close absolute end-1 top-1 z-50 grid size-8 place-content-center rounded-xl hover:bg-secondary focus:bg-secondary focus:outline-hidden focus-visible:ring-1 focus-visible:ring-primary sm:end-2 sm:top-2 sm:size-7 sm:rounded-md', |
| 128 | className |
| 129 | )} |
| 130 | > |
| 131 | <XMarkIcon className="size-4" /> |
| 132 | </PrimitiveButton> |
| 133 | ) : null |
| 134 | } |
| 135 | |
| 136 | export type { |
| 137 | CloseButtonIndicatorProps, |
Callers
nothing calls this directly
Tested by
no test coverage detected