layout: component-detail group: components subgroup: blocks-and-cards permalink: /components/blocks-and-cards/card.html
title: Card description: This is a card. status: Complete
| const DynamicComponent = React.lazy(() => | |
| import(`path/to/${reactComponentName}`) | |
| ); | |
| return ( | |
| //This works, but now how to I crawl in and grab its properties and PropTypes? | |
| <Suspense fallback={<div>Loading...</div>}> | |
| <DynamicComponent title="Lazy loaded component" /> | |
| </Suspense> | |
| ) |
| <Breadcrumbs> | |
| <Breadcrumb text="Home" href="/" /> | |
| <Breadcrumb text="Child" href="/child" /> | |
| <Breadcrumb text="Grandchild" href="/child/grandchild" /> | |
| </Breadcrumbs> | |
| // or | |
| <Breadcrumbs items={[ | |
| { |
| /****************************************************** | |
| * PATTERN LAB NODE | |
| * EDITION-NODE-GULP | |
| * The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets. | |
| ******************************************************/ | |
| var gulp = require('gulp'), | |
| path = require('path'), | |
| browserSync = require('browser-sync').create(), | |
| sass = require('gulp-sass'), | |
| concat = require('gulp-concat'), |
layout: component-detail group: components subgroup: blocks-and-cards permalink: /components/blocks-and-cards/card.html
title: Card description: This is a card. status: Complete
| // set up the defaults for the | |
| var baseIframePath = window.location.protocol + "//" + window.location.host + window.location.pathname.replace("index.html", ""); | |
| var patternName = ((config.defaultPattern !== undefined) && (typeof config.defaultPattern === 'string') && (config.defaultPattern.trim().length > 0)) ? config.defaultPattern : 'all'; | |
| var iFramePath = baseIframePath + "styleguide/html/styleguide.html?" + Date.now(); | |
| if ((oGetVars.p !== undefined) || (oGetVars.pattern !== undefined)) { | |
| patternName = (oGetVars.p !== undefined) ? oGetVars.p : oGetVars.pattern; | |
| } | |
| if (patternName !== "all") { | |
| patternPath = urlHandler.getFileName(patternName); |
| /****************************************************** | |
| * PATTERN LAB NODE | |
| * EDITION-NODE-GULP | |
| * The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets. | |
| ******************************************************/ | |
| var gulp = require('gulp'), | |
| path = require('path'), | |
| browserSync = require('browser-sync').create(), | |
| sass = require('gulp-sass'), | |
| concat = require('gulp-concat'), |
These guidelines will govern how we write frontend code for The Spruce (and hopefully beyond!)
<h1> through <h6> tags, groups of objects should be marked up as <ul> or <ol> tags, and so on.