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

@chakra-ui/icons

Package Overview
Dependencies
Maintainers
3
Versions
469
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/icons

Chakra UI icons

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

Version published
Weekly downloads
0
Maintainers
3
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 30 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

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