Collapsible Page Form

A base collection of field components rendered within multi collapsible tabs.

Example

Sign-up

Already a member? Log in

Cancel

@something

 
<div style="background-color: white">
    <!-- Masthead -->
    <sgds-masthead fluid></sgds-masthead>
    <!-- Header section -->
    <section class="my-8 mx-md-8">
        <nav aria-label="breadcrumb" class="sgds">
            <ol class="breadcrumb">
                <li class="breadcrumb-item">
                    <a href="#" role="button" tabindex="0">HOME</a>
                </li>
                <li class="breadcrumb-item active" aria-current="page">
                    SIGN-UP
                </li>
            </ol>
        </nav>
        <div class="mb-4 row">
            <div class="col-md-6 col-12">
                <h1>Sign-up</h1>
                <p class="text-muted">
                    Already a member?
                    <a href="" class="text-decoration-none">Log in</a>
                </p>
            </div>
            <div
                class="d-flex justify-content-end align-items-center col-md-6 col-12"
            >
                <a href="" class="me-4">Cancel</a
                ><button type="button" class="me-4 btn btn-outline-dark sgds">
                    Save as draft</button
                ><button type="button" class="btn btn-secondary sgds">
                    Next
                </button>
            </div>
        </div>
    </section>
    <!-- Accordion component nesting form -->
    <div class="mx-md-8 shadow sgds accordion" id="accordionExample">
        <div class="accordion-item">
            <h2 class="accordion-header" id="headingOne">
                <button
                    class="accordion-button"
                    type="button"
                    data-bs-toggle="collapse"
                    data-bs-target="#collapseOne"
                    aria-expanded="true"
                    aria-controls="collapseOne"
                >
                    Accordion Item #1
                </button>
            </h2>
            <div
                id="collapseOne"
                class="accordion-collapse collapse show"
                aria-labelledby="headingOne"
                data-bs-parent="#accordionExample"
            >
                <div class="p-5 accordion-body">
                    <div class="col-sm-8">
                        <form>
                            <div class="row">
                                <div class="mb-3 col-md-6 col-12">
                                    <label
                                        class="form-label"
                                        for="formCollapsibleInput1"
                                        >Label</label
                                    ><input
                                        placeholder="Text goes here"
                                        type="text"
                                        id="formCollapsibleInput1"
                                        class="form-control"
                                    />
                                </div>
                                <div class="mb-3 col-md-6 col-12">
                                    <label
                                        class="form-label"
                                        for="formCollapsibleSinglePageInput2"
                                        >Label</label
                                    ><input
                                        placeholder="Text goes here"
                                        type="text"
                                        id="formCollapsibleSinglePageInput2"
                                        class="form-control"
                                    />
                                </div>
                            </div>
                            <div class="mb-3">
                                <label
                                    class="form-label"
                                    for="formCollapsibleInput3"
                                    >Label</label
                                >
                                <div class="mb-3 input-group sgds">
                                    <input
                                        placeholder="Text goes here"
                                        aria-label="Dollar amount (with dot and two decimal places)"
                                        id="formCollapsibleInput3"
                                        class="form-control"
                                    /><span class="input-group-text"
                                        >@something</span
                                    >
                                </div>
                            </div>
                            <div class="mb-3">
                                <label
                                    class="form-label"
                                    for="formCollapsibleInput4"
                                    >Label</label
                                ><input
                                    placeholder="Text goes here"
                                    type="text"
                                    id="formCollapsibleInput4"
                                    class="form-control"
                                />
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="accordion-item">
            <h2 class="accordion-header" id="headingTwo">
                <button
                    class="accordion-button collapsed"
                    type="button"
                    data-bs-toggle="collapse"
                    data-bs-target="#collapseTwo"
                    aria-expanded="false"
                    aria-controls="collapseTwo"
                >
                    Accordion Item #2
                </button>
            </h2>
            <div
                id="collapseTwo"
                class="accordion-collapse collapse"
                aria-labelledby="headingTwo"
                data-bs-parent="#accordionExample"
            >
                <div class="p-5 accordion-body">
                    <div class="col-sm-8">
                        <div class="mb-3">
                            <label
                                class="form-label"
                                for="formCollapsibleSelect1"
                                >Label</label
                            ><select
                                class="form-select"
                                id="formCollapsibleSelect1"
                            >
                                <option>Text goes here</option>
                                <option>Text goes here</option>
                                <option>Text goes here</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="accordion-item">
            <h2 class="accordion-header" id="headingThree">
                <button
                    class="accordion-button collapsed"
                    type="button"
                    data-bs-toggle="collapse"
                    data-bs-target="#collapseThree"
                    aria-expanded="false"
                    aria-controls="collapseThree"
                >
                    Accordion Item #3
                </button>
            </h2>
            <div
                id="collapseThree"
                class="accordion-collapse collapse"
                aria-labelledby="headingThree"
                data-bs-parent="#accordionExample"
            >
                <div class="p-5 accordion-body">
                    <div class="col-sm-8">
                        <div class="mb-3">
                            <label
                                class="form-label"
                                for="formCollapsibleRadio1"
                                >Label</label
                            >
                            <div class="form-check">
                                <input
                                    name="radioGroup1"
                                    type="radio"
                                    id="formCollapsibleRadio1"
                                    class="form-check-input"
                                /><label
                                    title=""
                                    for="formCollapsibleRadio1"
                                    class="form-check-label"
                                    >Input 1</label
                                >
                            </div>
                            <div class="form-check">
                                <input
                                    name="radioGroup1"
                                    type="radio"
                                    id="formCollapsibleRadio1"
                                    class="form-check-input"
                                /><label
                                    title=""
                                    for="formCollapsibleRadio1"
                                    class="form-check-label"
                                    >Input 2</label
                                >
                            </div>
                            <div class="form-check">
                                <input
                                    name="radioGroup1"
                                    type="radio"
                                    id="formCollapsibleRadio1"
                                    class="form-check-input"
                                /><label
                                    title=""
                                    for="formCollapsibleRadio1"
                                    class="form-check-label"
                                    >Input 3</label
                                >
                            </div>
                        </div>
                        <div class="mb-3">
                            <label
                                class="form-label"
                                for="formCollapsibleInput5"
                                >Label</label
                            ><textarea
                                rows="5"
                                placeholder="This is the text that has been filled in"
                                type="text"
                                id="formCollapsibleInput5"
                                class="form-control"
                            ></textarea>
                        </div>
                        <div class="mb-3">
                            <div class="form-check">
                                <input
                                    type="checkbox"
                                    id="formCollapsibleCheckbox1"
                                    class="form-check-input"
                                /><label
                                    title=""
                                    for="formCollapsibleCheckbox1"
                                    class="form-check-label"
                                    >I agree to the terms of the Subscriber
                                    Agreement and the Privacy Policy</label
                                >
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="d-flex justify-content-end my-8 mx-md-8">
        <button type="button" class="btn btn-secondary sgds">Submit</button>
    </div>
    <!-- Footer component -->
    <footer class="sgds footer">
        <section class="footer-top">
            <div class="container-fluid">
                <div class="row footer-header">
                    <div class="col col-lg-6">
                        <div class="title">
                            Singapore Government Design System
                        </div>
                        <div class="description">
                            Lorem ipsum, dolor sit amet consectetur adipisicing
                            elit. Earum illo delectus laborum libero id ratione
                            quibusdam tempora assumenda quas, pariatur cum
                            minus, aliquid molestiae et nisi dolorem vitae
                            molestias! Voluptate commodi aliquid iusto sequi sit
                            eligendi, quod numquam nihil consectetur eaque error
                            earum laudantium! Temporibus accusamus pariatur quod
                            totam quia.
                        </div>
                    </div>
                </div>
                <div class="row footer-items">
                    <div class="col-lg-3">
                        <div class="title">Column 1</div>
                        <ul class="links">
                            <li><a href="">About Us</a></li>
                            <li><a href="">This is a super long link</a></li>
                            <li><a href="">Test</a></li>
                            <li><a href="">Test</a></li>
                        </ul>
                    </div>
                    <div class="col-lg-3">
                        <div class="title">Category 1</div>
                        <ul class="links">
                            <li><a href="">About Us</a></li>
                            <li><a href="">This is a super long link</a></li>
                            <li><a href="">Test</a></li>
                            <li><a href="">Test</a></li>
                        </ul>
                    </div>
                    <div class="col-lg-3">
                        <div class="title">Category 1</div>
                        <ul class="links">
                            <li><a href="">About Us</a></li>
                            <li><a href="">This is a super long link</a></li>
                            <li><a href="">Test</a></li>
                            <li><a href="">Test</a></li>
                        </ul>
                    </div>
                </div>
                <div class="row footer-contact-links">
                    <div class="col">
                        <div class="d-flex justify-content-lg-end">
                            <ul>
                                <li><a href="">Contact</a></li>
                                <li><a href="">Feedback</a></li>
                                <li>
                                    <a
                                        href="https://www.reach.gov.sg/"
                                        target="_blank"
                                        rel="noopener noreferrer"
                                        >Reach.gov.sg</a
                                    >
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <section class="footer-bottom">
            <div class="container-fluid">
                <div class="row footer-mandatory-links">
                    <div class="col">
                        <ul>
                            <li>
                                <a
                                    href="https://tech.gov.sg/report_vulnerability"
                                    target="_blank"
                                    rel="noopener noreferrer"
                                    >Report Vulnerability</a
                                >
                            </li>
                            <li><a href="">Privacy</a></li>
                            <li><a href="">Terms of use</a></li>
                        </ul>
                    </div>
                </div>
                <div class="row footer-copyrights">
                    <div class="col">
                        <div class="d-flex justify-content-lg-end">
                            © 2022 Government of Singapore. Last Updated 08 Feb
                            2022
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </footer>
</div>

                
Home


Previous version 2.0.0