{"id":16676571,"url":"https://github.com/hexium310/custom-dashed-border","last_synced_at":"2025-10-20T08:08:08.502Z","repository":{"id":90235366,"uuid":"196004902","full_name":"hexium310/custom-dashed-border","owner":"hexium310","description":"React component for customisable dashed border","archived":false,"fork":false,"pushed_at":"2019-08-27T14:59:58.000Z","size":103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T10:37:31.691Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hexium310.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-09T12:32:55.000Z","updated_at":"2020-03-14T17:36:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"af99bfde-706c-49c3-bf44-3eaf7e17fef9","html_url":"https://github.com/hexium310/custom-dashed-border","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":"0.18181818181818177","last_synced_commit":"b4061261dfe0fe69bedbafc1fdffe356aee0b493"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hexium310/custom-dashed-border","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexium310%2Fcustom-dashed-border","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexium310%2Fcustom-dashed-border/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexium310%2Fcustom-dashed-border/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexium310%2Fcustom-dashed-border/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexium310","download_url":"https://codeload.github.com/hexium310/custom-dashed-border/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexium310%2Fcustom-dashed-border/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260496236,"owners_count":23018056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-12T13:10:55.001Z","updated_at":"2025-10-20T08:08:03.467Z","avatar_url":"https://github.com/hexium310.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CustomDashedBorder\n\nReact component for customisable dashed border\n\n![image](https://user-images.githubusercontent.com/10758173/60896675-b4e74300-a2a1-11e9-8574-a4b8a54f0ba8.png)\n\n## Installation\n\n```sh\nyarn add -D custom-dashed-border\n```\n\n## Usage\n\n```javascript.jsx\nimport React from 'react';\nimport { CustomDashedBorder } from 'custom-dashed-border';\n\nconst wrapperStyle = {\n  position: 'relative',\n  height: 110,\n  width: 200,\n  display: 'flex',\n  justifyContent: 'center',\n  alignItems: 'center',\n};\n\nconst App = () =\u003e {\n  return (\n    // Require to wrap this component in `position: relative` block.\n    \u003cdiv style={ { position: 'relative', ...wrapperStyle } }\u003e\n      \u003cCustomDashedBorder\n        top={\n          {\n            color: '#ADD8E6',\n            stripe: 15,\n            spacing: 15,\n            height: 5,\n          }\n        }\n        bottom={ { stripe: 20, spacing: 5 } }\n        left\n      \u003e\n        Content\n      \u003c/CustomDashedBorder\u003e\n    \u003c/div\u003e\n  );\n};\n```\n\n### Props\n\nThis component has `top`, `right`, `bottom` and `left` props.\nCan set border options (see below) to each prop.  \nPositions that didn't use props are not displayed.  \nPositions that didn't set options are using the default option.\n\n```javascript\n// Border position. top or bottom or right or left.\ntop: {\n  // Can set CSS color value.\n  color: '#000',\n  // Length of each line (px).\n  stripe: 10,\n  // Length of between lines (px).\n  spacing: 10,\n  // Only top and bottom. Can use number or string.\n  height: '1px',\n  // Only right and left. Can use number or string.\n  width: '1px',\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexium310%2Fcustom-dashed-border","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexium310%2Fcustom-dashed-border","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexium310%2Fcustom-dashed-border/lists"}