Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <section id="home">

# Home
This is a tool for prototyping interactive user flows using USWDS and Markdown.

- Each section represents a state.
- A state could be a page, a model, or some type of feedback.
- Use Markdown to add notes about each state.
- Use buttons to link to other states.
- Optionally, paste in [USWDS components](

<button next="#page2">Go to next state</button>

</section><!-- end of page -->
<section id="page2">
# Page Two

Welcome to the new state!

<button next="#page3">Go to last state</button>

</section><!-- end of page -->

<section id="page3">
# This could be a modal

At last, we've reached the conclusion of this flow.

<button next="#page2">Go back to previous state</button>
<button next="#home">Go back to home</button>

</section><!-- end of page -->





                // The purpose of this JavaScript is to keep the content as clean as possible, using mostly Markdown with just a few HTML elements and attributes, and to keep all the content in one pen for simplicity.

  // add some styling classes and show only the first state
  $('body').addClass('grid-container padding-top-5 bg-base-lightest');
  $('button').addClass('usa-button usa-button--accent-cool');
  // when clicking a button, hide the current state and show the next one
  $('button').on('click', function(){
    var link = $(this).attr('next');