{"id":19273931,"url":"https://github.com/rintoj/native-x-modal","last_synced_at":"2025-04-21T22:33:19.111Z","repository":{"id":44155197,"uuid":"377968131","full_name":"rintoj/native-x-modal","owner":"rintoj","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-08T17:31:05.000Z","size":162,"stargazers_count":0,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T16:24:13.713Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/rintoj.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":"2021-06-17T21:48:44.000Z","updated_at":"2022-07-08T17:31:09.000Z","dependencies_parsed_at":"2022-07-30T09:08:07.860Z","dependency_job_id":null,"html_url":"https://github.com/rintoj/native-x-modal","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rintoj%2Fnative-x-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rintoj%2Fnative-x-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rintoj%2Fnative-x-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rintoj%2Fnative-x-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rintoj","download_url":"https://codeload.github.com/rintoj/native-x-modal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250145205,"owners_count":21382368,"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-09T20:44:31.048Z","updated_at":"2025-04-21T22:33:14.097Z","avatar_url":"https://github.com/rintoj.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# native-x-modal\n\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nThis component adds space between to other components\n\n## Install\n\n### Yarn\n\n```sh\nyarn add native-x-modal\n```\n\n### NPM\n\n```sh\nnpm install native-x-modal\n```\n\n## Usage\n\n```tsx\nimport { Modal } from 'native-x-modal'\n\nfunction MyComponent() {\n  const [visible, setVisible] = React.useState(false)\n  return (\n    \u003cModal visible={visible} onClose={() =\u003e setVisible(false)}\u003e\n      ...\n    \u003c/Modal\u003e\n  )\n}\n```\n\n## API\n\n| Property             | Default Value | Usage              |\n| -------------------- | ------------- | ------------------ |\n| children?: string    |               | Content            |\n| visible?: boolean    |               | Show modal         |\n| showClose?: boolean  |               | Show close button  |\n| width?: number       |               | Width of the modal |\n| onClose?: () =\u003e void |               | On close modal     |\n\n## Confirmation Modal\n\n```tsx\nimport { ConfirmationModal } from 'native-x-modal'\n\nfunction MyComponent() {\n  const [visible, setVisible] = React.useState(false)\n  return (\n    \u003cConfirmationModal\n      visible={visible}\n      onOk={onOkFn}\n      onCancel={onCancelFn}\n      okText='OK'\n      cancelText='Cancel'\n      onClose={() =\u003e setVisible(false)}\u003e\n      ...\n    \u003c/Modal\u003e\n  )\n}\n```\n\n| Property                             | Default Value | Usage                             |\n| ------------------------------------ | ------------- | --------------------------------- |\n| children?: string                    |               | Content                           |\n| visible?: boolean                    |               | Show modal                        |\n| showClose?: boolean                  |               | Show close button                 |\n| width?: number                       |               | Width of the modal                |\n| onClose?: () =\u003e void                 |               | On close modal                    |\n| onOk?: () =\u003e void                    |               | On click on ok button             |\n| onCancel?: () =\u003e void                |               | On click on cancel button         |\n| okText?: string                      | OK            | Label of ok button                |\n| okButtonBackgroundColor?: string     |               | Background color of ok button     |\n| okTextColor?: string                 |               | Text color of ok button           |\n| cancelText?: string                  | Cancel        | Label of cancel button            |\n| cancelButtonBackgroundColor?: string |               | Background color of cancel button |\n| cancelTextColor?: string             |               | Text color of cancel button       |\n\n## Automatic Release\n\nHere is an example of the release type that will be done based on a commit messages:\n\n| Commit message      | Release type          |\n| ------------------- | --------------------- |\n| fix: [comment]      | Patch Release         |\n| feat: [comment]     | Minor Feature Release |\n| perf: [comment]     | Major Feature Release |\n| doc: [comment]      | No Release            |\n| refactor: [comment] | No Release            |\n| chore: [comment]    | No Release            |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frintoj%2Fnative-x-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frintoj%2Fnative-x-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frintoj%2Fnative-x-modal/lists"}