Aller au contenu

DialogContent

Ce contenu n’est pas encore disponible dans votre langue.

import { DialogContent } from "@rebasepro/ui";
Prop Type Required Description
align "center" | "inherit" | "left" | "right" | "justify"
children React.ReactNode yes
className string
component "span"
gutterBottom boolean
noWrap boolean
paragraph boolean
variant "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "label" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2"
variantMapping { [key: string]: string; }
color "inherit" | "disabled" | "error" | "primary" | "secondary" | "initial"
onClick React.ReactEventHandler<HTMLElement> & React.MouseEventHandler<HTMLSpanElement>
style React.CSSProperties
id string
includeMargin boolean

This is the example the design-system sync renders and verifies for this component.

import {
Dialog,
DialogTitle,
DialogContent,
DialogActions,
Typography,
Button
} from "@rebasepro/ui";
// DialogContent only makes sense inside an open Dialog — full parent
// composition, same portal-escape issue. Needs cfg.overrides.DialogContent
// = { cardMode: "single", primaryStory: "Default" }.
export const Default = () => (
<div className="p-4 h-[320px]">
<Dialog open onOpenChange={() => {}} maxWidth="md">
<DialogTitle>Rotate encryption key</DialogTitle>
<DialogContent>
<Typography variant="body2" color="secondary">
Rotating the cluster encryption key re-wraps every secret in the
project. Existing deploys keep running; new ones use the new key.
</Typography>
</DialogContent>
<DialogActions>
<Button variant="text">Cancel</Button>
<Button variant="filled">Rotate key</Button>
</DialogActions>
</Dialog>
</div>
);