{"id":21018950,"url":"https://github.com/reactabular/reactabular-semantic-ui","last_synced_at":"2025-05-15T06:31:56.699Z","repository":{"id":57348075,"uuid":"86692882","full_name":"reactabular/reactabular-semantic-ui","owner":"reactabular","description":"Reactabular wrapper for semantic-ui","archived":false,"fork":false,"pushed_at":"2017-12-11T15:59:01.000Z","size":8,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-24T14:46:10.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/reactabular.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-03-30T11:02:26.000Z","updated_at":"2020-08-08T01:43:59.000Z","dependencies_parsed_at":"2022-08-31T16:44:41.147Z","dependency_job_id":null,"html_url":"https://github.com/reactabular/reactabular-semantic-ui","commit_stats":null,"previous_names":["itrytopwn/reactabular-semantic-ui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactabular%2Freactabular-semantic-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactabular%2Freactabular-semantic-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactabular%2Freactabular-semantic-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactabular%2Freactabular-semantic-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reactabular","download_url":"https://codeload.github.com/reactabular/reactabular-semantic-ui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254288327,"owners_count":22045881,"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-11-19T10:28:18.663Z","updated_at":"2025-05-15T06:31:54.592Z","avatar_url":"https://github.com/reactabular.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reactabular-semantic-ui - Reactabular wrapper for semantic-ui-react\n\nHelper for Reactabular to use Semantic-Ui-React table with it.\n\u003cbr\u003e\u003cbr\u003eShould be able to handle any properties specified in Semantic-UI-React documentation.\nhttp://react.semantic-ui.com/collections/table\n## Example\n\n```jsx\nimport React, { Component } from \"react\";\nimport componentsWrapper from 'reactabular-semantic-ui';\nimport * as Table from \"reactabular-table\";\n\nimport \"semantic-ui-css/semantic.min.css\";\n\n\n\nconst rows = [\n  {\n    id: 100,\n    name: 'John'\n  },\n  {\n    id: 101,\n    name: 'Jack'\n  }\n];\n\nconst columns = [\n  {\n    property: 'name',\n    header: {\n      label: 'Name'\n    }\n  }\n];\n\n// Define properties that you wnat to pass to corresponding components\n// All of those are optional\nconst combinedProps = {\n  //Semantic UI React \u003cTable /\u003e component props in object format\n  tableProps: {\n    striped: true,\n    color: \"red\"\n  },\n  //Semantic UI React \u003cTable.Header /\u003e component props in object format\n  headerProps: {\n    fullWidth: true\n  },\n  //Header row props if you want to do something special there\n  headerRowProps: {},\n  //Semantic UI React \u003cTable.HeaderCell /\u003e component props in object format\n  headerCellProps: {\n    textAlign: \"center\"\n  },\n  //Semantic UI React \u003cTable.Body /\u003e component props in object format\n  bodyProps: {\n    className: \"customtablebodyclass\"\n  },\n  //Semantic UI React \u003cTable.Row /\u003e component props in object format\n  bodyRowProps: {\n    positive: true\n  },\n  //Semantic UI React \u003cTable.Cell /\u003e component props in object format\n  bodyCellProps: {\n    textAlign: \"left\",\n    positive: true,\n    icon: \"folder\",\n    singleLine: true\n  }\n};\n\n//Set your custom props\n//componentsWrapper is possible to call without any parameters\nconst componentsWithProps = componentsWrapper(combinedProps)\n\nconst SemanticReactabular = () =\u003e {\n  return (\n    \u003cTable.Provider\n      columns={columns}\n      components={componentsWithProps}\n    \u003e\n      \u003cTable.Header /\u003e\n\n      \u003cTable.Body rows={rows} rowKey=\"id\" /\u003e\n    \u003c/Table.Provider\u003e\n  );\n};\n\n```\n\n## License\n\nMIT. See LICENSE for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freactabular%2Freactabular-semantic-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freactabular%2Freactabular-semantic-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freactabular%2Freactabular-semantic-ui/lists"}