Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

atomic

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atomic

## Initialise Atomic Run the following command to initialize the project for Atomic: ``` npx atomic init ```

  • 2.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
241
decreased by-10.07%
Maintainers
1
Weekly downloads
 
Created
Source

Integrating Atomic Components to your Application

Initialise Atomic

Run the following command to initialize the project for Atomic:

npx atomic init

You will be prompted with a series of questions to configure your project:

  1. Choose a Theme: Select a theme from the provided options and press Enter.

  2. Global CSS File: Specify the path to your global.css file. If you are using a Next.js app, the default path is @/app/globals.css. You can also define a custom path based on your requirements.

  3. Configure Import Alias: Choose the default alias by pressing Enter or customize it. To customize, locate your tsconfig.json file and find the alias under the "paths" section.
    Example: @[your_alias]/atomic-ui.

  4. Save Configuration: Confirm writing the configuration to atomic.components.json by pressing the letter "y" on your keyboard.

You are now ready to add Atomic components to your project.

Adding Atomic Components

To start using Atomic components in your application:

  1. Locate the desired Atomic Component from the preview list on the Home page of the Atomic website.

  2. Navigate to the specific Component page by clicking on the desired component from the preview list. Within the Component page, locate the "Add Component to Project" section, typically positioned on the right side of the page.

  3. This section displays the CLI command to be used, containing the desired component's name.

npx atomic add [componentName]
  1. The command will add all the code and dependencies required to start using the component in the configured directory.

Once the code is generated and integrated into your application, you can use it like any other React component.

Keywords

FAQs

Package last updated on 12 Sep 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc