A modal dialog component used to alert users of issues or request confirmation for actions, supporting various alert types and primary or secondary actions.
// Source: https://github.com/pinterest/gestalt | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { ComponentProps, ReactNode } from 'react';
import Button from './Button';
import ButtonLink from './ButtonLink';
import { useDefaultLabelContext } from './contexts/DefaultLabelProvider';
import DeviceTypeProvider from './contexts/DeviceTypeProvider';
import Flex from './Flex';
import Modal from './Modal';
import ModalAlertAction from './ModalAlert/Action';
import ModalAlertHeader from './ModalAlert/Header';
export type ActionDataType =
| {
accessibilityLabel: string;
dataTestId?: string;
disabled?: boolean;
href: string;
label: string;
onCl
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key