
Research
/Security News
npm Author Qix Compromised in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
@foundrykit/components
Advanced tools
A collection of pre-built, styled React components built on top of `@foundrykit/primitives`. These components provide ready-to-use UI elements with consistent styling and behavior.
A collection of pre-built, styled React components built on top of
@foundrykit/primitives
. These components provide ready-to-use UI elements with
consistent styling and behavior.
@foundrykit/primitives
for accessibilitypnpm add @foundrykit/components
import { Calendar } from '@foundrykit/components/calendar';
import { DatePicker } from '@foundrykit/components/date-picker';
import { SearchBar } from '@foundrykit/components/search-bar';
function MyApp() {
return (
<div>
<SearchBar
placeholder='Search...'
onSearch={query => console.log(query)}
/>
<DatePicker onDateSelect={date => console.log(date)} />
<Calendar mode='single' onSelect={date => console.log(date)} />
</div>
);
}
Each component can be configured through its config file:
import { Calendar } from '@foundrykit/components/calendar'
// Use default configuration
<Calendar />
// Override with custom configuration
<Calendar
className="custom-calendar"
disabled={false}
mode="range"
/>
Components come with default styling but can be customized:
import { SearchBar } from '@foundrykit/components/search-bar';
import { cn } from '@foundrykit/utils';
function CustomSearchBar({ className, ...props }) {
return (
<SearchBar
className={cn('rounded-lg border-2 border-blue-500', className)}
{...props}
/>
);
}
Each component is organized as follows:
component/
├── config.ts # Component configuration and variants
├── index.tsx # Main component exports
├── variants-grid.tsx # Component variants for documentation
└── README.md # Component-specific documentation
Components are built on top of primitives for maximum flexibility:
import { Calendar } from '@foundrykit/components/calendar'
import { Calendar as CalendarPrimitive } from '@foundrykit/primitives/calendar'
// Use the pre-styled component
<Calendar />
// Or use the primitive directly for custom styling
<CalendarPrimitive className="my-custom-styles" />
Components work with your existing theme system:
import { SearchBar } from '@foundrykit/components/search-bar';
// Components automatically use your theme tokens
<SearchBar className='bg-background text-foreground' />;
Many components support variants for different use cases:
import { SearchBar } from '@foundrykit/components/search-bar'
<SearchBar variant="default" />
<SearchBar variant="outline" />
<SearchBar variant="ghost" />
All components inherit accessibility features from their underlying primitives:
When adding new components:
MIT
FAQs
A collection of pre-built, styled React components built on top of `@foundrykit/primitives`. These components provide ready-to-use UI elements with consistent styling and behavior.
The npm package @foundrykit/components receives a total of 1,957 weekly downloads. As such, @foundrykit/components popularity was classified as popular.
We found that @foundrykit/components 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
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.