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

@chakra-ui/anatomy

Package Overview
Dependencies
Maintainers
2
Versions
277
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/anatomy

The anatomy of all chakra components

  • 0.0.0-dev-20230830133821
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created

What is @chakra-ui/anatomy?

@chakra-ui/anatomy is a utility package from Chakra UI that provides a set of predefined anatomy objects for various UI components. These anatomy objects help in creating consistent and accessible component structures by defining the parts and their respective styles.

What are @chakra-ui/anatomy's main functionalities?

Button Anatomy

The button anatomy defines the parts of a button component, such as 'container', 'icon', and 'label'. This helps in creating a consistent button structure across the application.

const { buttonAnatomy } = require('@chakra-ui/anatomy');

const parts = buttonAnatomy.keys;
console.log(parts); // ['container', 'icon', 'label']

Input Anatomy

The input anatomy defines the parts of an input component, such as 'addon', 'field', and 'element'. This ensures a consistent structure for input components.

const { inputAnatomy } = require('@chakra-ui/anatomy');

const parts = inputAnatomy.keys;
console.log(parts); // ['addon', 'field', 'element']

Modal Anatomy

The modal anatomy defines the parts of a modal component, such as 'overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', and 'footer'. This helps in creating a consistent modal structure.

const { modalAnatomy } = require('@chakra-ui/anatomy');

const parts = modalAnatomy.keys;
console.log(parts); // ['overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', 'footer']

Other packages similar to @chakra-ui/anatomy

Keywords

FAQs

Package last updated on 30 Aug 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

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