Featuring Design System
Legacy

CoreLoader

로더 컴포넌트

Usage

기본 사용법

import { CoreLoader } from '@featuring-corp/components';

<CoreLoader />

크기 설정

import { CoreLoader } from '@featuring-corp/components';

<CoreLoader size="xxs" />
<CoreLoader size="xs" />
<CoreLoader size="sm" />
<CoreLoader size="md" />
<CoreLoader size="lg" />
<CoreLoader size="xl" />
<CoreLoader size="xxl" />

색상 설정

import { CoreLoader } from '@featuring-corp/components';

<CoreLoader color="primary" />
<CoreLoader color="white" />

크기와 색상 조합

import { CoreLoader } from '@featuring-corp/components';

<CoreLoader size="sm" color="primary" />
<CoreLoader size="lg" color="white" />
<CoreLoader size="xl" color="primary" />

Props

ComponentPropsWithoutRef<'div'> 타입을 확장한 컴포넌트입니다.

Prop

Type

LoaderSize

Prop

Type

LoaderColor

Prop

Type

스타일

기본 스타일 속성

  • display: inline-block
  • border-radius: radius-full
  • flex-shrink: 0
  • animation: spinner 1s infinite linear
  • border: ${borderWidthVar} solid

Size Variants

SizeWidth/HeightBorder Width
xxs8px1.2px
xs16px2.5px
sm24px3.8px
md40px6.45px
lg56px9px
xl72px11.5px
xxl88px14.1px

Color Variants

Colorborder-colorborder-right-color
primaryborder-defaultprimary[60]
whiteborder-default (40% opacity)white

Animation

  • Keyframes: spinner
  • Duration: 1s
  • Iteration: infinite
  • Timing Function: linear
  • Transform: rotate(1turn)