{"id":22085539,"url":"https://github.com/imprisonedmind/reacttailwindtoolbox","last_synced_at":"2026-04-17T00:02:15.399Z","repository":{"id":196600317,"uuid":"696758087","full_name":"imprisonedmind/reactTailwindToolBox","owner":"imprisonedmind","description":"Webstorm Live Template for my react workflow","archived":false,"fork":false,"pushed_at":"2024-05-07T13:03:23.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-20T15:24:42.381Z","etag":null,"topics":["livetemplate","react","tailwindcss","webstorm"],"latest_commit_sha":null,"homepage":"","language":null,"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/imprisonedmind.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,"zenodo":null}},"created_at":"2023-09-26T11:34:12.000Z","updated_at":"2024-05-07T13:03:27.000Z","dependencies_parsed_at":"2024-05-07T13:59:08.535Z","dependency_job_id":null,"html_url":"https://github.com/imprisonedmind/reactTailwindToolBox","commit_stats":null,"previous_names":["imprisonedmind/lukesreacttoolbox","imprisonedmind/reacttailwindtoolbox"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imprisonedmind/reactTailwindToolBox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imprisonedmind%2FreactTailwindToolBox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imprisonedmind%2FreactTailwindToolBox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imprisonedmind%2FreactTailwindToolBox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imprisonedmind%2FreactTailwindToolBox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imprisonedmind","download_url":"https://codeload.github.com/imprisonedmind/reactTailwindToolBox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imprisonedmind%2FreactTailwindToolBox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31909235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["livetemplate","react","tailwindcss","webstorm"],"created_at":"2024-12-01T01:14:57.435Z","updated_at":"2026-04-17T00:02:15.350Z","avatar_url":"https://github.com/imprisonedmind.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# React \u0026 Tailwind ToolBox\n\nAn opinionated React, NativeWind \u0026 Tailwind live template for IntelliJ products. \u003cbr/\u003e\nThese live templates are created in the way I like to use in my daily work\nflow, I prefer to have my types at the top of the file and I like to export\ninline where I declare my component.\n\n\u003cbr/\u003e\n\n### Where to put the template.xml\n\nRename the template to what ever you want to call it i.e. ```lukesReactToolBox.xml```\nthen drop the file into the following location:\n\n``\n/Users/yourUser/Library/Application\\Support/JetBrains/WebStorm2023.3/templates/lukesReactToolBox.xml\n``\n\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n\n\n[React Generic Shortcuts](#react-generic-shortcuts) |\n[React Web Shortcuts](#react-web-shortcuts) |\n[NativeWind Shortcuts](#native-wind-shortcuts) |\n[Tailwind Shortcuts](#tailwind-shortcuts)\n\n### React Generic Shortcuts\n\n```uses```\nCreates a useState with a null value\n\n```tsx\nconst [state, setState] = useState(null)\n```\n\n```usee```\nCreates a styled useEffect with no deps\n\n```tsx\nuseEffect(() =\u003e {\n\n}, [])\n```\n\n```af```\nCreates a styled arrow function\n\n```javascript\nconst handleSomething = () =\u003e {\n\n};\n```\n\n\u003cbr/\u003e\n\n### React Web Shortcuts\n\n```rfc```\nCreates a simple Functional Component - Uses current filename without extension\n\n```jsx\nexport default function FileName() {\n    return (\n    \u003cdiv className={``}\u003e\n    \n    \u003c/div\u003e\n    );\n};\n```\n\n```rtfc```\nCreates a Typed Functional Component - Uses current filename without extension\n\n```tsx\nimport {FC} from \"react\";\n\ninterface FileNameProps {\n  prop: string;\n}\n\nexport const FileName: FC\u003cFileNameProps\u003e = ({prop}) =\u003e {\n\n    return (\n        \u003cdiv className={``}\u003e\n            {prop}\n        \u003c/div\u003e\n    );\n};\n```\n\n```rtern```\nCreates a styled ```TERNARY``` operation for ```\u003cdiv\u003e``` rendering with className\n\n```tsx\n{\n    value ? (\n        \u003cdiv className={``}\u003e\u003c/div\u003e\n    ) : (\n        \u003cdiv className={``}\u003e\u003c/div\u003e\n    )\n}\n```\n\n```rand```\nCreates a styled ```AND``` operation for ```\u003cdiv\u003e``` rendering with className\n\n```tsx\n{\n\tvalue \u0026\u0026 (\u003cdiv className={``}\u003e\u003c/div\u003e)\n}\n```\n\n\u003cbr/\u003e\n\n### Native Wind Shortcuts\n\n```nwfc```\nCreates a NativeWind Simple Functional Component - Uses current filename without extension\n\n```tsx\nimport {View, Text} from \"react-native\";\n\nexport default function TestFile() {\n    return (\n        \u003cView className={``}\u003e\n    \n        \u003c/View\u003e\n    );\n};\n```\n\n```nwtfc```\nCreates a NativeWind Typed Functional Component - Uses current filename without extension\n\n```tsx\nimport {FunctionComponent} from \"react\";\nimport {View, Text, ViewStyle} from \"react-native\";\n\ninterface OwnProps {\n  style: ViewStyle;\n}\n\ntype Props = OwnProps;\n\nexport const ComponentName: FunctionComponent\u003cProps\u003e = (props) =\u003e {\n    const {style} = props\n    \n    return (\n        \u003cView style={style} className={``}\u003e\n    \n        \u003c/View\u003e\n    );\n};\n```\n\n```nwview```\nCreates a styled NativeWind ```\u003cView\u003e``` with ClassName\n\n```tsx\n\u003cView className={``}\u003e\n\n\u003c/View\u003e\n```\n\n```nwtext```\nCreates a styled NativeWind ```\u003cText\u003e``` with ClassName\n\n```tsx\n\u003cText className={``}\u003e\n\n\u003c/Text\u003e\n```\n\n```nwtern```\nCreates a styled ```TERNARY``` operation for ```\u003cView\u003e``` rendering with className\n\n```tsx\n{\n\tvalue ? (\n\t\t\u003cView className={``}\u003e\u003c/View\u003e\n\t) : (\n\t\t\u003cView className={``}\u003e\u003c/View\u003e\n\t)\n}\n```\n\n```nwand```\nCreates a styled ```AND``` operation for ```\u003cView\u003e``` rendering with className\n\n```tsx\n{\n\tvalue \u0026\u0026 (\u003cView className={``}\u003e\u003c/View\u003e)\n}\n```\n\n\u003cbr/\u003e\n\n### Tailwind Shortcuts\n\n```twdiv```\nCreates a styled div with flex\n\n```tsx\n\u003cdiv className={`flex`}\u003e\n\n\u003c/div\u003e\n```\n\n```twrow```\nCreates a styled row\n\n```tsx\n\u003cdiv className={`flex flex-row gap-4`}\u003e\n\n\u003c/div\u003e\n```\n\n```twcol```\nCreates a styled column\n\n```tsx\n\u003cdiv className={`flex flex-col gap-4`}\u003e\n\n\u003c/div\u003e\n```\n\n```twtern```\nCreates an ```in line TERNARY``` operation for ```class``` styling based\non a ```value```\n\n```tsx\n${value ? \"\" : \"\"}\n```\n\n```twor```\nCreates an ```in line OR``` operation for ```class``` styling based on a ```nullable\nvalue```\n\n```tsx\n${value || \"\"}\n```\n\n```twand```\nCreates an ```in line AND``` operation for ```class``` styling based on a ```value```\n\n```tsx\n${value \u0026\u0026 \"\"}\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimprisonedmind%2Freacttailwindtoolbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimprisonedmind%2Freacttailwindtoolbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimprisonedmind%2Freacttailwindtoolbox/lists"}