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

@chakra-ui/skeleton

Package Overview
Dependencies
Maintainers
3
Versions
511
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/skeleton

React component to render a placeholders while you wait for content to load

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

Version published
Weekly downloads
200K
decreased by-58.03%
Maintainers
3
Weekly downloads
 
Created

What is @chakra-ui/skeleton?

@chakra-ui/skeleton is a component library that provides skeleton loading indicators for React applications. These skeletons are used to show placeholder content while the actual content is being loaded, improving the user experience by giving a visual indication that content is on its way.

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

Basic Skeleton

This feature allows you to create a basic skeleton loader with a specified height. It is useful for indicating loading states for text or other content.

import { Skeleton } from '@chakra-ui/react';

function BasicSkeleton() {
  return <Skeleton height="20px" />;
}

Skeleton Circle

This feature allows you to create a circular skeleton loader, which is useful for indicating loading states for avatars or profile pictures.

import { SkeletonCircle } from '@chakra-ui/react';

function CircleSkeleton() {
  return <SkeletonCircle size="10" />;
}

Skeleton Text

This feature allows you to create a skeleton loader for text content with multiple lines. You can specify the number of lines and the spacing between them.

import { SkeletonText } from '@chakra-ui/react';

function TextSkeleton() {
  return <SkeletonText mt="4" noOfLines={4} spacing="4" />;
}

Custom Skeleton

This feature allows you to create a custom skeleton loader by combining multiple skeleton components. It is useful for more complex loading states that involve multiple elements.

import { Box, Skeleton } from '@chakra-ui/react';

function CustomSkeleton() {
  return (
    <Box padding="6" boxShadow="lg" bg="white">
      <Skeleton height="40px" />
      <Skeleton mt="4" height="20px" />
      <Skeleton mt="4" height="20px" />
    </Box>
  );
}

Other packages similar to @chakra-ui/skeleton

Keywords

FAQs

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