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

@chakra-ui/icons

Package Overview
Dependencies
Maintainers
2
Versions
471
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/icons

Chakra UI icons

  • 2.2.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
240K
decreased by-13.23%
Maintainers
2
Weekly downloads
 
Created

What is @chakra-ui/icons?

@chakra-ui/icons is a package that provides a set of commonly used icons as React components, designed to be used with the Chakra UI framework. These icons are built on top of the popular Feather icons and are optimized for accessibility and ease of use within Chakra UI applications.

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

Basic Icon Usage

This feature allows you to easily import and use icons as React components. The example demonstrates how to import the `CheckIcon` and use it within a React component.

import { CheckIcon } from '@chakra-ui/icons';

function App() {
  return (
    <div>
      <CheckIcon />
    </div>
  );
}

Customizing Icon Size and Color

This feature allows you to customize the size and color of the icons. The example shows how to set the width, height, and color of the `CheckIcon`.

import { CheckIcon } from '@chakra-ui/icons';

function App() {
  return (
    <div>
      <CheckIcon w={8} h={8} color="green.500" />
    </div>
  );
}

Using Icons with Chakra UI Components

This feature demonstrates how to use icons within other Chakra UI components, such as buttons. The example shows a `Button` component with a `CheckIcon` as the left icon.

import { Button } from '@chakra-ui/react';
import { CheckIcon } from '@chakra-ui/icons';

function App() {
  return (
    <Button leftIcon={<CheckIcon />} colorScheme="teal">
      Submit
    </Button>
  );
}

Other packages similar to @chakra-ui/icons

FAQs

Package last updated on 04 Oct 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