Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
secptrum-ui
Advanced tools
SecptrumUI A comprehensive React component library
styled
for advanced styling.Before installing SecptrumUI, ensure you have:
>= 18.0.0
>= 18.0.0
installed in your project.
To install SecptrumUI, you can use npm or yarn:
# Using npm
npm install secptrum-ui
# Using yarn
yarn add secptrum-ui
To use SecptrumUI components in your project, import the components you need
import { Button, Input, Stack, Box } from 'secptrum-ui';
function App() {
return (
<Stack spacing="md">
<Box padding="md" border="1px solid #ddd">
<Input placeholder="Enter your text here" />
</Box>
<Button size='lg' radius='lg' variant="solid">
Click Me
</Button>
</Stack>
);
}
SecptrumUI includes a variety of components to help you build your application
Button
: A customizable button component designed to handle various actions and events in your application. The Button component supports multiple variants, sizes, and states, making it versatile and adaptable to different design and functionality needs.Input
: A versatile input field component that supports different types, styles, and additional features like icons. The Input component is designed to be highly customizable, making it suitable for various use cases such as forms, search bars, and user data entry.Stack
: A layout component that arranges its children in a vertical or horizontal stack with configurable spacing. The Stack component simplifies the management of child components' spacing, alignment,Box
: A flexible container component that serves as a building block for layout and styling. The Box component allows you to easily control spacing (padding and margin), alignment, borders, and other CSS properties through props.Tabs
: A tabs component that allows users to switch between different views or sections of content. The Tabs component provides a clean and intuitive interface for navigating between different parts of an application.For a full list of components and their usage, please refer to the documentation.
SecptrumUI includes a CLI tool to help set up your Next.js project with SecptrumUI.
Note: This setup is specific to Next.js and provides detailed instructions for configuration.
First, ensure you have Secptrum UI installed in your project. If not, you can install it using npm or yarn:
npm install secptrum-ui
To initialize SecptrumUI next configuration in your Next.js project, run the following command:
npx secptrum-ui init
This command will create a SecptrumUIRegistry
component and add it to your project at lib/registry.js
or lib/registry.tsx
file.
Finally, import the SecptrumUIRegistry
component in your layout.js
or layout.tsx
file:
app/layout
for App Router
src/layout
for Pages Router
TypeScript
import SecptrumUIRegistry from '@/lib/registry';
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html>
<body lang="en">
<SecptrumUIRegistry>{children}</SecptrumUIRegistry>
</body>
</html>
);
}
import SecptrumUIRegistry from '@/lib/registry';
export default function RootLayout({ children }) {
return (
<html>
<body lang="en" >
<SecptrumUIRegistry>{children}</SecptrumUIRegistry>
</body>
</html>
);
}
Note: When using the
styled
API in the Next.js App Router, you must include the'use client'
directive at the top of the file. No need to worry about style glitches—Secptrum UI ensures smooth styling across your app.
SecptrumUI leverages styled
, a css-in-js method, to provide a flexible way to customize components.
import { Button, styled } from 'secptrum-ui';
// Customizing the Button component
const CustomButton = styled(Button)`
background-color: #007bff;
color: white;
padding: 12px 24px;
`;
function App() {
return (
<CustomButton>
Customized Button
</CustomButton>
);
}
export default App;
Note: You can use your favorite styling library to customize components, such as
TailwindCSS
,styled-components
, etc., or even plain CSS.
Contributions are welcome to improve SecptrumUI! Please see our CONTRIBUTING.md for guidelines on how to submit improvements and bug fixes.
FAQs
**SecptrumUI** A comprehensive React component library
The npm package secptrum-ui receives a total of 122 weekly downloads. As such, secptrum-ui popularity was classified as not popular.
We found that secptrum-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.