{"id":24079910,"url":"https://github.com/hypersoftllc/qc-react-block","last_synced_at":"2026-05-15T19:33:33.605Z","repository":{"id":65481584,"uuid":"109623301","full_name":"hypersoftllc/qc-react-block","owner":"hypersoftllc","description":"A React component that renders a div with the semantics of representing a block structure or region.","archived":false,"fork":false,"pushed_at":"2018-04-04T02:36:53.000Z","size":329,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2026-05-07T09:54:26.497Z","etag":null,"topics":["react-component","semantic"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hypersoftllc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-05T22:47:12.000Z","updated_at":"2018-04-04T02:35:37.000Z","dependencies_parsed_at":"2023-01-25T16:30:56.755Z","dependency_job_id":null,"html_url":"https://github.com/hypersoftllc/qc-react-block","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/hypersoftllc/qc-react-block","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypersoftllc%2Fqc-react-block","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypersoftllc%2Fqc-react-block/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypersoftllc%2Fqc-react-block/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypersoftllc%2Fqc-react-block/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hypersoftllc","download_url":"https://codeload.github.com/hypersoftllc/qc-react-block/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypersoftllc%2Fqc-react-block/sbom","scorecard":{"id":475534,"data":{"date":"2025-08-11","repo":{"name":"github.com/hypersoftllc/qc-react-block","commit":"e6841d0fd1707822c1e59978a273ee26347a524e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: ISC License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":0,"reason":"75 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-rq8g-5pc5-wrhr","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-hr2v-3952-633q","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-xf7w-r453-m56c","Warn: Project is vulnerable to: GHSA-q42p-pg8m-cqh6","Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9","Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f","Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p","Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv","Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8","Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65","Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq","Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f9cm-qmx5-m98h","Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-6394-6h9h-cfjg","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-6g33-f262-xjp4","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-2m39-62fm-q8r3","Warn: Project is vulnerable to: GHSA-mf6x-7mm4-x2g7","Warn: Project is vulnerable to: GHSA-j44m-qm6p-hp7m","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-g7q5-pjjr-gqvp","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T15:11:16.181Z","repository_id":65481584,"created_at":"2025-08-19T15:11:16.181Z","updated_at":"2025-08-19T15:11:16.181Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33076212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react-component","semantic"],"created_at":"2025-01-09T22:26:33.976Z","updated_at":"2026-05-15T19:33:33.581Z","avatar_url":"https://github.com/hypersoftllc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @qc/react-block\n\n[![Build Status][travis-svg]][travis-url]\n[![Coverage Status][coverage-image]][coverage-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nA React component that renders a `div` with the semantics of representing a\nblock structure or region.\n\nA `div` is a [block-level element][ble] but by default it does not create a\n[block formatting context][bfc] (BFC).  Certain CSS properties can be applied to\nelements to give it a BFC.  Some of the methods are listed below.\n\n1) Block elements where `overflow` has a value other than `visible`.\n2) Elements with `contain` set to `layout`, `content`, or `strict`.\n3) Elements with `display`'s inside value set to `flow-root`.\n\nA BFC provides the following benefits, among others:\n\n* Prevents top and bottom margin bleedthrough.\n* Lets the background fill the entire area behind an element's content.\n\nSee this [Block Formatting Context for Block-Level Elements][bfc-codepen]\nCodepen to see BFC in action.\n\nNote: Included with the BFC CSS is `box-sizing: border-box` since this is the\nbox-sizing most sensible for a block.\n\nOne of the most common use cases is to use `Block` as the root of a custom\nReact component or as representing different regions within a component.  See\nthe examples below.\n\n\n## Installation\n\n```sh\nnpm install --save @qc/react-block\n```\n\nor\n\n```sh\nyarn add @qc/react-block\n```\n\n\n## Example Usage\n\n**As the Root**\n\n```jsx\nimport React from 'react'\n\nimport Block from '@qc/react-block'\n\nimport '@qc/react-block/dist/styles/Block.css'\n\n\nexport default function MyBlockComponent(props) {\n  return (\n    \u003cBlock className=\"My\" style={{ backgroundColor: '#bedfed' }}\u003e\n      \u003ch1\u003eMy Block Component\u003c/h1\u003e\n      {/*\n      Note: The margins of the `h1` and `p` won't bleed-through\n      like they would with default styled `div`s.  Also, the\n      background color will fill the area behind the margins.\n      */}\n      \u003cp\u003eMy component demo'ing the Block component.\u003c/p\u003e\n    \u003c/Block\u003e\n  )\n}\n```\n\n**Component Regions**\n\n```jsx\nimport React from 'react'\n\nimport Block from '@qc/react-block'\n\nimport '@qc/react-block/dist/styles/Block.css'\n\n\nexport default function Panel(props) {\n  return (\n    \u003cBlock className=\"Panel\"\u003e\n      \u003cBlock className=\"Panel-Head\"\u003e\n        \u003cTitle\u003ePanel's Title\u003c/Title\u003e\n      \u003c/Block\u003e\n      \u003cBlock className=\"Panel-Body\"\u003e\n        \u003ch1\u003e...\u003c/h1\u003e\n        \u003cp\u003e...\u003c/p\u003e\n        \u003ch2\u003e...\u003c/h2\u003e\n        \u003cp\u003e...\u003c/p\u003e\n      \u003c/Block\u003e\n      \u003cBlock className=\"Panel-Foot\"\u003e\n        \u003cbutton\u003e...\u003c/button\u003e\n      \u003c/Block\u003e\n    \u003c/Block\u003e\n  )\n}\n```\n\n**Custom Component Type**\n\n`div`s are not the only element supported.  Any one of the following elements\nmay be used by setting the `compType` property.\n\n* `address`\n* `article`\n* `aside`\n* `blockquote`\n* `details`\n* `div`\n* `dl`\n* `fieldset`\n* `figcaption`\n* `figure`\n* `footer`\n* `form`\n* `header`\n* `main`\n* `nav`\n* `section`\n\n```jsx\nimport React from 'react'\n\nimport Block from '@qc/react-block'\n\nimport '@qc/react-block/dist/styles/Block.css'\n\n\nexport default function SiteFooter(props) {\n  return (\n    \u003cBlock compType=\"footer\"\u003e\n      ...\n    \u003c/Block\u003e\n  )\n}\n```\n\n**Just Using `Block` CSS**\n\nThe key to the `Block` component is in the CSS — not the JavaScript.  All that\nneeds to be done is to include the `Block` CSS class in any\u003csup\u003e†\u003c/sup\u003e\ncomponent.\n\n```jsx\nimport React from 'react'\n\nimport '@qc/react-block/dist/styles/Block.css'\n\n\nexport default function SiteFooter(props) {\n  return (\n    \u003cfooter className=\"Block\"\u003e\n      ...\n    \u003c/footer\u003e\n  )\n}\n```\n\n\u003csup\u003e†\u003c/sup\u003e Excluding [replaced elements].\n\n\n## Use ES Modules\n\nThis package also comes with the source and an ES variation.  Instead of\n\n```jsx\nimport Block from '@qc/react-block'\n```\n\nuse\n\n```jsx\nimport Block from '@qc/react-block/es/Block'\n```\n\nor\n\n```jsx\nimport Block from '@qc/react-block/src/Block'\n```\n\nto import the component.\n\nIf you do this, then you will need to be sure to transpile the code to a syntax\ncompatible with the browsers you plan to support.\n\nThe source is using object spread syntax.  In order to transpile it with\n[babel], you must include the [object spread transform\nplugin][babel-obj-sprd-txm].\n\n\n## Why Multiple BFC Methods?\n\nWhy are multiple BFC methods employed in the included CSS?\n\nThis is to help ensure the block is still given a BFC if in the event that the\nCSS is overridden in a way that would have removed the BFC.  For instance, in\nbrowsers that support `contain: layout` or `display: flow-root`, the following\nwill still have a BFC.\n\n```jsx\n\u003cBlock style={{overflow: 'visible'}}\u003e\n  ...\n\u003c/Block\u003e\n```\n\n\n## Other Packages from [QC]\n\n* [@qc/react-conditionals][qc-react-conditionals]\n* [@qc/react-layer][qc-react-layer]\n* [@qc/react-page][qc-react-page]\n\n\n## Maintainers\n\n- [Danny Hurlburt](https://github.com/dhurlburtusa)\n\n\n## License\n\nISC\n\n\n[babel]: https://babeljs.io/\n[babel-obj-sprd-txm]: https://babeljs.io/docs/plugins/transform-object-rest-spread/\n[bfc]: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context\n[bfc-codepen]: https://codepen.io/dhurlburtusa/pen/GxdBJX?editors=1100\n[ble]: https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements\n[coverage-image]: https://coveralls.io/repos/github/hypersoftllc/qc-react-block/badge.svg?branch=master\n[coverage-url]: https://coveralls.io/github/hypersoftllc/qc-react-block?branch=master\n[downloads-image]: http://img.shields.io/npm/dm/@qc/react-block.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=@qc/react-block\n[license-image]: http://img.shields.io/npm/l/@qc/react-block.svg\n[license-url]: LICENSE\n[package-url]: https://npmjs.org/package/@qc/react-block\n[npm-badge-png]: https://nodei.co/npm/@qc/react-block.png?downloads=true\u0026stars=true\n[qc]: https://www.npmjs.com/~qc\n[qc-react-conditionals]: https://www.npmjs.com/package/@qc/react-conditionals\n[qc-react-layer]: https://www.npmjs.com/package/@qc/react-layer\n[qc-react-page]: https://www.npmjs.com/package/@qc/react-page\n[replaced elements]: https://developer.mozilla.org/en-US/docs/Web/CSS/Replaced_element\n[travis-svg]: https://travis-ci.org/hypersoftllc/qc-react-block.svg?branch=master\n[travis-url]: https://travis-ci.org/hypersoftllc/qc-react-block\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypersoftllc%2Fqc-react-block","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypersoftllc%2Fqc-react-block","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypersoftllc%2Fqc-react-block/lists"}