@blueprintjs/core
Version:
Core styles & components
36 lines (24 loc) • 1.28 kB
Markdown
@class="@ns-callout @ns-intent-primary @ns-icon-info-sign">
<h4 class="@ns-heading">Terminology note</h4>
The term "modal" is sometimes used to mean "dialog," but this is a misnomer.
_Modal_ is an adjective that describes parts of a UI.
An element is considered modal if it
[ ](https://en.wikipedia.org/wiki/Modal_window).
We use the term "dialog" to avoid confusion with the adjective.
</div>
@reactExample DialogExample
@
`Dialog` is a stateless React component controlled by the `isOpen` prop.
The children you provide to this component are rendered as contents inside the
`Classes.DIALOG` element. Typically, you will want to provide a child with
`Classes.DIALOG_BODY` that contains the body content and a child with
`Classes.DIALOG_FOOTER` that contains the action buttons.
@interface IDialogProps
@
You can create dialogs manually using the HTML markup and `@ns-dialog-*` classes below.
However, you should use the [`Dialog` component](
whenever possible, as they automatically generate some of this markup.
More examples of dialog content are shown below.
@css dialog
Dialogs present content overlaid over other parts of the UI.
<div