Socket
Book a DemoInstallSign in
Socket

@archetypeapi/core

Package Overview
Dependencies
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@archetypeapi/core

This is the package for the Archetype Component Library.

latest
npmnpm
Version
1.3.0
Version published
Maintainers
5
Created
Source

Archetype Internal Component Library

This is the package for the Archetype Component Library.

Before running yarn dev, add the following entry to the root of package.json:

"exports": {
    ".": "./dist",
    "./styles.css": "./dist/styles.css"
  },

Components

Each file inside of src/ is a component inside our design system. For example:

import * as React from 'react';
export interface ButtonProps {
  children: React.ReactNode;
}
export function Button(props: ButtonProps) {
  return <button>{props.children}</button>;
}
Button.displayName = 'Button';

When adding a new file, ensure the component is also exported from the entry index.tsx file:

import * as React from "react";
export { Button, type ButtonProps } from "./Button";
// Add new component exports here

See the repository README for more details.

FAQs

Package last updated on 13 Mar 2023

Did you know?

Socket

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.

Install

Related posts