{"id":19785880,"url":"https://github.com/dev-ashishranjan/react-kar-glassmorphism","last_synced_at":"2026-04-15T16:03:46.546Z","repository":{"id":65949009,"uuid":"603219304","full_name":"dev-AshishRanjan/react-kar-glassmorphism","owner":"dev-AshishRanjan","description":"A npm package repo","archived":false,"fork":false,"pushed_at":"2023-03-02T14:34:25.000Z","size":422,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T06:57:06.354Z","etag":null,"topics":["glassmorphism-css","npm-package","react"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-kar-glassmorphism","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/dev-AshishRanjan.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-17T21:49:42.000Z","updated_at":"2023-02-22T22:20:52.000Z","dependencies_parsed_at":"2023-06-19T08:21:57.082Z","dependency_job_id":null,"html_url":"https://github.com/dev-AshishRanjan/react-kar-glassmorphism","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dev-AshishRanjan/react-kar-glassmorphism","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-AshishRanjan%2Freact-kar-glassmorphism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-AshishRanjan%2Freact-kar-glassmorphism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-AshishRanjan%2Freact-kar-glassmorphism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-AshishRanjan%2Freact-kar-glassmorphism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-AshishRanjan","download_url":"https://codeload.github.com/dev-AshishRanjan/react-kar-glassmorphism/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-AshishRanjan%2Freact-kar-glassmorphism/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31848664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: 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":["glassmorphism-css","npm-package","react"],"created_at":"2024-11-12T06:16:00.779Z","updated_at":"2026-04-15T16:03:46.520Z","avatar_url":"https://github.com/dev-AshishRanjan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React kar Glassmorphism\n\n\u003c!-- [![npm package][npm-badge]][npm] --\u003e\n\n\u003e- We are facing some problem related to babel.\n\u003e- so this package is currently not compatible with CRA.\n\u003e- You can use this package on [codesandbox](https://codesandbox.io/s/beautiful-wing-kf8o5i?file=/src/App.js)\n\n\u003c!-- \u003e Can be used in codesandbox, see [example](https://codesandbox.io/s/beautiful-wing-kf8o5i?file=/src/App.js) --\u003e\n\nWe provide 3 React components :\n- Gdiv - A modified HTML div Element\n- Ginput - A modified HTML input Element\n- Gbutton - A modified HTML button Element\n\n## start using this package by running \n```shell\nnpm i react-kar-glassmorphism\n```\n\n## Gdiv\n\nThe modified HTML div Element for glassmorphism\n\n```jsx app.js\nimport {Gdiv} from 'react-kar-glassmorphism';\nconst App = () =\u003e {\n  return (\n    \u003cGdiv/\u003e\n  );\n}\n```\nThe most commonly used props are:\n- minWidth\n- minHeight\n- border\n- background\n- borderRadius\n- padding\n\n\u003eThe list of all props that can be passed to this react component are :\n\u003e- minWidth, minHeight, width, height, zIndex, border, background, borderRadius, backdropFilter, fontFamily, boxShadow, padding\n\u003e- You can use any css property as props aslong they are in js fromat (camelcase).\n\u003e- For things like hover, focus etc you can use classes and ids. These can be passed as props to this react component.\n\n\n\n## Ginput\n\nThe modified HTML div Element for glassmorphism\n\n```jsx app.js\nimport {Ginput} from 'react-kar-glassmorphism';\nconst App = () =\u003e {\n  return (\n    \u003cGinput placeholder='name' stateValue={first} stateFunction={setFirst}/\u003e\n  );\n}\n```\nThe most commonly used props are:\n- placeholder\n- stateValue\n- stateFunction\n\n\u003eThe list of all props that can be passed to this react component are :\n\u003e- placeholder, stateValue, stateFunction, width, zIndex, border, background, borderRadius, fontFamily, padding, color\n\u003e- You can use any css property as props aslong they are in js fromat (camelcase).\n\u003e- For things like hover, focus etc you can use classes and ids. These can be passed as props to this react component.\n\n\n\n## Gbutton\n\nThe modified HTML div Element for glassmorphism\n\n```jsx app.js\nimport {Gbutton} from 'react-kar-glassmorphism';\nconst App = () =\u003e {\n  return (\n    \u003cGbutton/\u003e\n  );\n}\n```\nThe most commonly used props are:\n- minWidth\n- minHeight\n- border\n- background\n- borderRadius\n- padding\n- color\n\n\u003eThe list of all props that can be passed to this react component are :\n\u003e- minWidth, minHeight, zIndex, border, background, borderRadius, backdropFilter, fontFamily, boxShadow, padding, color\n\u003e- You can use any css property as props aslong they are in js fromat (camelcase).\n\u003e- For things like hover, focus etc you can use classes and ids. These can be passed as props to this react component.\n\n\n\n## usecases\n\nyou can also pass childrens inside props.\n\nApp.js\n```jsx app.js\nimport React,{useState,useEffect} from 'react';\nimport { Gdiv,Gbutton,Ginput } from 'react-kar-glassmorphism';\nimport './App.css';\nconst App = () =\u003e {\n  const [first, setFirst] = useState('');\n  useEffect(() =\u003e {\n    console.log(first);\n  }, [first]);\n  \n  return (\n    // Gdiv has a child Ginput\n    \u003cGdiv minWidth='10rem' minHeight='10rem' zIndex='1' border='1px solid white' background='rgba(255,255,255,.2)' borderRadius='0.5rem' backdropFilter='blur(0.2rem)' fontFamily='monospace' boxShadow='2px 2px 4px black' padding='0.7rem'\u003e\n      \u003cGinput/\u003e\n    \u003c/Gdiv\u003e\n\n    // Gbutton has a text as child\n    \u003cGbutton minWidth='5rem' minHeight='3rem' zIndex='1' border='1px solid white' background='rgba(255,255,255,.1)' borderRadius='0.3rem' backdropFilter='blur(0.5rem)' fontFamily='monospace' boxShadow='2px 2px 5px black' padding='0.7rem' className='btn' color='white'\u003e\n      lol\n    \u003c/Gbutton\u003e\n\n    // Ginput has react state and statefunction as props\n    \u003cGinput placeholder='name' stateValue={first} stateFunction={setFirst} id='inputId'/\u003e\n  );\n}\n```\nApp.css\n```css App.css\n.btn:hover {\n  background: red !important;  /* have to use !important as we want to change some inline css which has highest priority */\n}\n\n#inputId{\n  font-weight: 500;\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-ashishranjan%2Freact-kar-glassmorphism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-ashishranjan%2Freact-kar-glassmorphism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-ashishranjan%2Freact-kar-glassmorphism/lists"}