{"id":15700891,"url":"https://github.com/linusu/react-with-separator","last_synced_at":"2025-05-12T15:23:58.686Z","repository":{"id":57141794,"uuid":"105778013","full_name":"LinusU/react-with-separator","owner":"LinusU","description":"Add a separator between each element","archived":false,"fork":false,"pushed_at":"2022-08-30T11:38:35.000Z","size":38,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-12T15:23:53.526Z","etag":null,"topics":["react","separator"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinusU.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-04T14:25:15.000Z","updated_at":"2022-08-30T11:38:39.000Z","dependencies_parsed_at":"2022-09-03T07:41:33.230Z","dependency_job_id":null,"html_url":"https://github.com/LinusU/react-with-separator","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Freact-with-separator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Freact-with-separator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Freact-with-separator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Freact-with-separator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusU","download_url":"https://codeload.github.com/LinusU/react-with-separator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253764083,"owners_count":21960510,"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":["react","separator"],"created_at":"2024-10-03T19:55:47.420Z","updated_at":"2025-05-12T15:23:58.664Z","avatar_url":"https://github.com/LinusU.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React `WithSeparator`\n\nAdd a separator between each element.\n\n## Installation\n\n```sh\nnpm install --save react-with-separator\n```\n\n## Usage\n\n```js\nconst WithSeparator = require('react-with-separator')\n\nconst React = require('react')\nconst { render } = require('react-dom')\n\nconst Footer = ({ username }) =\u003e (\n  \u003cWithSeparator separator=' | '\u003e\n    (!username \u0026\u0026 (\n      \u003ca href='/login'\u003eLogin\u003c/a\u003e\n    ))\n\n    (username \u0026\u0026 (\n      \u003ca href='/logout'\u003eLogout\u003c/a\u003e\n    ))\n\n    \u003ca href='/help'\u003eHelp\u003c/a\u003e\n  \u003c/WithSeparator\u003e\n)\n\nrender(\u003cFooter username='linusu' /\u003e)\n```\n\nWill render something like this:\n\n```text\n Logout | Help\n```\n\n## Props\n\n### `separator`\n\n- required\n- type: `ReactElement | string`\n\nThe element or string to insert between each child element.\n\n### `leading`\n\n- optional\n- type: `boolean`\n\nWhether to insert a leading separator or not.\n\n### `trailing`\n\n- optional\n- type: `boolean`\n\nWhether to insert a trailing separator or not.\n\n### `children`\n\n- optional\n- type: `React.ReactNode`\n\nThe children to insert separators between\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Freact-with-separator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinusu%2Freact-with-separator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Freact-with-separator/lists"}