
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
@consentry/ui
Advanced tools
Composable UI components for the Consentry consent manager. Built with Emotion and designed for use with @consentry/core or @consentry/next.
Headless and fully customizable React components for the Consentry consent manager. Includes modals, banners, toggles, and more β built for flexibility and themeability.
@consentry/ui
is the official component library for @consentry/core
and @consentry/next
. It provides:
npm install @consentry/ui @consentry/core @consentry/next
ConsentManagerProvider
(from @consentry/next
)"use client";
import { ConsentManagerProvider } from "@consentry/next";
import ConsentManager from "@consentry/ui";
import consentConfig from "./consent.config";
export default function RootLayout({ children }) {
return (
<ConsentManagerProvider config={consentConfig}>
<ConsentManager mode="modal" dark={false} />
{children}
</ConsentManagerProvider>
);
}
ConsentManager
ComponentThe main UI component. Renders:
Prop | Type | Default | Description |
---|---|---|---|
mode | "modal" | "top" | "bottom" | β | Defines banner layout |
dark | boolean | false | Enables dark mode styling |
hideSettingsButton | boolean | false | Hides the floating button |
categories | CookieCategory[] | predefined | Override default cookie categories |
labels | object | predefined | Customize banner and modal text |
classNames | object | β | Customize class names per section |
To open the settings modal programmatically (e.g., from a Privacy page):
import { openConsentSettings } from "@consentry/ui";
<button onClick={() => openConsentSettings()}>Open Cookie Settings</button>;
You can customize:
labels.banner
, labels.modal
)classNames.container
, classNames.title
, etc.)dark
, mode
, hideSettingsButton
)MIT β Copyright Β© 2025
Mustafa ONAL
github.com/consentryio
FAQs
Composable UI components for the Consentry consent manager. Built with Emotion and designed for use with @consentry/core or @consentry/next.
We found that @consentry/ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.