You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@chakra-ui/anatomy

Package Overview
Dependencies
Maintainers
2
Versions
266
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


Version published
Weekly downloads
600K
increased by0.83%
Maintainers
2
Created
Weekly downloads
 

Package description

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

Readme

Source

@chakra-ui/anatomy

This package declares the anatomy for the Chakra UI components.

It was inspired the ::part() selector from the W3C CSS Shadow Parts Draft with data-attributes.

This is an internal utility, not intended for public usage.

Installation

yarn add @chakra-ui/anatomy
# or
npm i @chakra-ui/anatomy

Contribution

Yes please! See the contributing guidelines for details.

Licence

This project is licensed under the terms of the MIT license.

Keywords

FAQs

Package last updated on 16 Jul 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc