
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
@onyourmarks/component-lib
Advanced tools
Component Lib is a frontend library that enables developers to test and develop components in isolation. It is built on top of Svelte kit, a framework for building web applications with Svelte.
To install the library, run the following command:
pnpm install @oym/component-lib
pnpm component-lib
The registry is a list of components that are available in the playground. To add a new component to the registry, follow these steps:
component-lib in the root of your project.register.ts with the following content:import MyComponent from '../src/lib/components/MyComponent.svelte';
import { MyComponentParameters } from './parameters/MyComponentParameters.ts';
export default [
{
title: 'MyComponent',
component: MyComponent,
parameters: MyComponentParameters,
},
];
The parameters folder contains the parameters for each component. The parameters are used to configure the component in the playground.
parameters within the component-lib folder.MyComponentParameters.ts with the following content:import type { ComponentLibParameters } from 'component-lib/types/ComponentTypes';
import { ChildComponentParameters } from './SvgParameters';
import ChildComponent from '../../src/lib/components/ChildComponent.svelte';
export const MyComponentParameters: ComponentLibParameters = [
{
name: 'selectProp',
type: 'select',
default: 'foo',
options: ['foo', 'bar']
},
{
name: 'textProp',
type: 'text',
default: 'Hello world',
},
{
name: 'children',
type: 'component',
component: {
title: 'ChildComponent',
instance: ChildComponent
},
options: ChildComponentParameters,
},
];
Text type:
textstringSelect type:
selectstringstring[]Check type:
checkbooleanArray type:
arrayany[]When a component has children, name should be set to children. Component type:
component{ title: string, instance: SvelteComponent }ComponentLibParametersText type:
textstringstringHTML type:
htmlstringstringSelect type:
selectstringstring[]stringFAQs
## Description
The npm package @onyourmarks/component-lib receives a total of 6 weekly downloads. As such, @onyourmarks/component-lib popularity was classified as not popular.
We found that @onyourmarks/component-lib demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.