はい、それは彼らのウェブサイト上の文書化されていますが、あなただけbase class
を変更することができ、そのようなModal.header, Modal.footer
などsubcomponent
がcustom classes
を追加しませんので、あなたがCSSコードでそれを行うにはいくつかの困難に直面しなければならない場合があり、ここに私のモーダルコードは、
私はあなたの
modal
data
のより多くの制御を取得するには
@media (min-width: 992px)
.my-modal-lg {
width: auto;
}
@media (min-width: 768px)
.my-modal-dialog {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
@media (min-width: 768px)
.my-modal-content {
box-shadow: 0 5px 15px rgba(0,0,0,.5);
height: auto;
min-height: 100%;
border-radius: 0;
}
ブートストラップコードのフルスクリーンを作ることができたCSSのコードの下で
<Modal
{...this.props}
show={this.state.show}
onHide={this.hideModal}
dialogClassName="custom-modal"
bsClass="my-modal"
>
、form
、text
私は次のGitHubのreact-bootstrap-modal
レポ
https://github.com/jquense/react-bootstrap-modal
、あなたがbootstrap modal
以外のものを試してみたい場合は、その後、あなたはまた、以下のURLを訪問しreact-modal
で見ることができ見てすることをお勧め、
https://github.com/reactjs/react-modal