Socket
Socket
Sign inDemoInstall

@chakra-ui/skeleton

Package Overview
Dependencies
107
Maintainers
4
Versions
511
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
429K
decreased by-22.82%
Maintainers
4
Created
Weekly downloads
 

Package description

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

Readme

Source

@chakra-ui/skeleton

Skeleton page is used to provide a low fidelity representation of the user interface (UI) before content appears on the page

A skeleton screen is a user experience pattern that’s shown to reduce load time frustration. They create better “perceived performance”.

Installation

yarn add @chakra-ui/skeleton

# or

npm i @chakra-ui/skeleton

Import components

<Skeleton>
  <span>Chakra ui is cool</span>
</Skeleton>

Keywords

FAQs

Last updated on 13 Apr 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc