Chakra UI is a component system for building products with speed ⚡️
Installations
npm install @chakra-ui/portal
Developer Guide
Typescript
Yes
Module System
CommonJS, ESM
Node Version
18.16.1
NPM Version
9.5.1
Score
93.9
Supply Chain
85.6
Quality
78.5
Maintenance
100
Vulnerability
100
License
Releases
@chakra-ui/panda-preset@3.7.0
Published on 04 Feb 2025
@chakra-ui/react@3.7.0
Published on 04 Feb 2025
@chakra-ui/cli@3.7.0
Published on 04 Feb 2025
@chakra-ui/react@3.6.0
Published on 02 Feb 2025
@chakra-ui/panda-preset@3.6.0
Published on 02 Feb 2025
@chakra-ui/cli@3.6.0
Published on 02 Feb 2025
Contributors
Languages
TypeScript (82.73%)
MDX (16.47%)
JavaScript (0.65%)
CSS (0.08%)
HTML (0.07%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Download Statistics
Total Downloads
74,479,644
Last Day
80,867
Last Week
353,159
Last Month
1,596,398
Last Year
26,413,166
GitHub Statistics
38,438 Stars
10,455 Commits
3,350 Forks
202 Watching
12 Branches
678 Contributors
Bundle Size
3.72 kB
Minified
1.38 kB
Minified + Gzipped
Package Meta Information
Latest Version
2.1.0
Package Id
@chakra-ui/portal@2.1.0
Unpacked Size
49.55 kB
Size
7.99 kB
File Count
22
NPM Version
9.5.1
Node Version
18.16.1
Publised On
18 Jul 2023
Total Downloads
Cumulative downloads
Total Downloads
74,479,644
Last day
-2.4%
80,867
Compared to previous day
Last week
-15%
353,159
Compared to previous week
Last month
-3.2%
1,596,398
Compared to previous month
Last year
10.4%
26,413,166
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
@chakra-ui/portal
A wrapper for rendering components in React Portals, with support for nested portals and stacking.
Installation
1yarn add @chakra-ui/portal 2 3# or 4 5npm i @chakra-ui/portal
Import components
1import { Portal, PortalManager } from "@chakra-ui/portal"
Render the PortalManager
once at the root of your application
1function App() { 2 return ( 3 <ThemeProvider> 4 <CSSReset /> 5 <PortalManager>{/* Your app goes here */}</PortalManager> 6 </ThemeProvider> 7 ) 8}
Basic usage
Portals are render into the portal manager's node by default not
document.body
.
1<div> 2 <p>Welcome</p> 3 <Portal>This text has been portaled</Portal> 4</div>
Nested portals
Nesting portal can be very useful to build complex widgets like nested menu, popovers, modal, etc.
1<Portal> 2 This is a portal. 3 <Portal>This is a nested portal</Portal> 4</Portal>
Custom container
You can also portal elements into a custom containers. Simply pass a
containerRef
prop that points to the node
of that element.
1<> 2 <div ref={ref} /> 3 <Portal containerRef={ref}> 4 <h1>Hello world</h1> 5 </Portal> 6</>
No vulnerabilities found.
Reason
30 commit(s) and 8 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
no binaries found in the repo
Reason
6 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w
- Warn: Project is vulnerable to: GHSA-c76h-2ccp-4975
- Warn: Project is vulnerable to: GHSA-9crc-q9x8-hgqq
Reason
Found 4/23 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: topLevel 'actions' permission set to 'write': .github/workflows/issue-stale.yml:10
- Warn: no topLevel permission defined: .github/workflows/quality.yml:1
- Warn: no topLevel permission defined: .github/workflows/release.yml:1
- Info: no jobLevel write permissions found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 11 are checked with a SAST tool
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/issue-stale.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/issue-stale.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quality.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/quality.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quality.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/quality.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quality.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/quality.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quality.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/quality.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quality.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/quality.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/release.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/chakra-ui/chakra-ui/release.yml/main?enable=pin
- Info: 0 out of 8 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
Score
4.3
/10
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to @chakra-ui/portal
@chakra-ui/c-portal
Chakra UI Vue | The portal allows us to teleport components to a differente location in the document component
@hackr/chakra-ui-portal
React component used to render children outside the DOM hierarchy of the parent component
@teste-ui/portal
React component used to render children outside the DOM hierarchy of the parent component
@incmix-ui/portal
Portal Component