
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@foundrykit/primitives
Advanced tools
A collection of accessible, unstyled UI primitives built on top of Radix UI primitives. These components provide the foundation for building consistent, accessible user interfaces.
A collection of accessible, unstyled UI primitives built on top of Radix UI primitives. These components provide the foundation for building consistent, accessible user interfaces.
pnpm add @foundrykit/primitives
import {
Button,
ButtonRoot,
ButtonContent,
} from '@foundrykit/primitives/button';
import { Input, InputRoot, InputField } from '@foundrykit/primitives/input';
function MyForm() {
return (
<form>
<Input>
<InputRoot>
<InputField placeholder='Enter your name' />
</InputRoot>
</Input>
<Button>
<ButtonRoot>
<ButtonContent>Submit</ButtonContent>
</ButtonRoot>
</Button>
</form>
);
}
All components follow a composable pattern where you can use either the complete component or individual sub-components:
// Complete component (recommended for most cases)
import { Button } from '@foundrykit/primitives/button';
// Individual sub-components (for maximum customization)
import {
ButtonRoot,
ButtonContent,
ButtonIcon,
} from '@foundrykit/primitives/button';
Since these are unstyled primitives, you'll need to add your own styling:
import { Button } from '@foundrykit/primitives/button';
import { cn } from '@foundrykit/utils';
function StyledButton({ className, ...props }) {
return (
<Button
className={cn(
'rounded bg-blue-500 px-4 py-2 text-white hover:bg-blue-600',
className
)}
{...props}
/>
);
}
Each component is organized as follows:
component/
├── config.ts # Component configuration and variants
├── index.tsx # Main component exports
└── README.md # Component-specific documentation
All components follow WCAG guidelines and include:
When adding new primitives:
MIT
FAQs
A collection of accessible, unstyled UI primitives built on top of Radix UI primitives. These components provide the foundation for building consistent, accessible user interfaces.
We found that @foundrykit/primitives 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.