Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <div id="host-container">
  <div id="billflow-embed"></div>
</div>
              
            
!

CSS

              
                #custom-button{
  background: #2323ce;
}
.__tier-name-enterprise .__plan-1{
   display: none;
}
              
            
!

JS

              
                /** Create the custom Enterprise tier button */
const CustomEnterpriseButton = {
  element: {
    type: "button", // element type
    props: {
      // any props that Reactjs accepts
      onClick: (e) => {
        e.preventDefault();
        alert("Trigger a custom action, such as open intercom."); // Only work in Codepen debug mode, editor mode blocks alert.
      },
      id: "custom-button",
      className:
        "custom-button sc-csTbgd kglWtV bf-button __full _3NM6Cu2g7QjO6j4WSEYBGp _1RTkeWIbayZ7rSk_0XZ-hN",
      href: "#"
    },
    children: "Contact Us" // the child element to be rendered in the custom element.
  }
};

/** Billflow Embed */
window.billflowSettings = {
  billing_page_id: "5GNX3vmderQxoquHKUPe", // replace with your own billing page id
  options: {
    elements: {
      pricing: {
        tiers: [
          {
            name: "Enterprise", // the sb_tier name you want to customize
            select: CustomEnterpriseButton // customizing the select button for the Custom tier
          }
        ]
      }
    }
  }
};
(function () {
  var s = document.createElement("script");
  s.src = "https://js.billflow.io/billflow-embed.js";
  s.async = true;
  s.type = "text/javascript";
  var x = document.getElementsByTagName("script")[0];
  x.parentNode.insertBefore(s, x);
})();

              
            
!
999px

Console