HYEONSE
DESIGN SYSTEM
v0.5.0GitHub

Hyeonse Design System

v0.5.0 · 사용 안내

명확한 기준.
일관된 인터페이스.

색과 간격부터 입력과 피드백까지.
직접 사용하고 검증할 수 있는 작은 디자인 시스템입니다.

실제 컴포넌트 미리보기입력에서 상태까지
@hyeonse/design-system
미리보기입력 중

이 예제는 저장되지 않아요.

이름을 바꾸고 상태를 확인해 보세요.

이 화면에 적용된 역할 토큰

배경
--paper
강조
--accent-solid
텍스트
--ink
경계
--control-border
토큰의 현재 값 보기

02 / FOUNDATIONS

값보다 먼저, 역할부터.

이름·용도·상태로 토큰을 찾으세요. 현재 값은 선택한 테마와 강조색에 맞춰 바뀝니다.

디자인 토큰 탐색

Aa

읽기의 위계

DM Sans와 Noto Sans KR. 작은 레이블부터 본문까지 정해진 글자 크기와 행간을 사용해요.

일정한 간격

4px부터 64px까지. 다섯 단계 크기로 조절하고, 터치 기기는 조작 영역 44px를 유지해요.

역할을 가진 색

바탕·글자·조작 경계·상태를 나눠, 밝고 어두운 화면 모두에서 같은 의미를 전달해요.

55 / 55개 토큰

현재 화면의 계산된 값
--inkPrimary foreground text#101114
CSS
var(--ink)

기본값 #101114

  • :root[data-theme='dark']→ #f2f4f8
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #f2f4f8
--paperPage background#ffffff
CSS
var(--paper)

기본값 #ffffff

  • :root[data-theme='dark']→ #111318
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #111318
--mutedSecondary text#5a606b
CSS
var(--muted)

기본값 #5a606b

  • :root[data-theme='dark']→ #b2b8c4
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #b2b8c4
--lineSubtle dividing line#d8dbe3
CSS
var(--line)

기본값 #d8dbe3

  • :root[data-theme='dark']→ #444a56
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #444a56
--surfaceGrouped content surface#f3f5f8
CSS
var(--surface)

기본값 #f3f5f8

  • :root[data-theme='dark']→ #1c2028
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #1c2028
--surface-raisedRaised content surface#ffffff
CSS
var(--surface-raised)

기본값 #ffffff

  • :root[data-theme='dark']→ #282d37
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #282d37
--accent-solidSolid accent surface#204cfc
CSS
var(--accent-solid)

기본값 #204cfc

  • :root[data-accent='forest']→ #087451
  • :root[data-accent='coral']→ #b93d20
--accent-textAccent text, link, selection, and focus#204cfc
CSS
var(--accent-text)

기본값 #204cfc

  • :root[data-accent='forest']→ #087451
  • :root[data-accent='coral']→ #b93d20
  • :root[data-theme='dark']→ #9aafff
  • :root[data-theme='dark'][data-accent='forest']→ #68dfb1
  • :root[data-theme='dark'][data-accent='coral']→ #ffa58e
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #9aafff
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])[data-accent='forest']→ #68dfb1
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])[data-accent='coral']→ #ffa58e
--palette-cobaltCobalt palette reference#204cfc
CSS
var(--palette-cobalt)

기본값 #204cfc

테마나 기기 조건에 따른 별도 값이 없어요.

--palette-forestForest palette reference#087451
CSS
var(--palette-forest)

기본값 #087451

테마나 기기 조건에 따른 별도 값이 없어요.

--palette-coralCoral palette reference#b93d20
CSS
var(--palette-coral)

기본값 #b93d20

테마나 기기 조건에 따른 별도 값이 없어요.

--on-accentForeground on solid accent surface#ffffff
CSS
var(--on-accent)

기본값 #ffffff

테마나 기기 조건에 따른 별도 값이 없어요.

--blueAlias of accent textvar(--accent-text)
CSS
var(--blue)

기본값 var(--accent-text)

테마나 기기 조건에 따른 별도 값이 없어요.

--about-surfaceAbout section surfacevar(--accent-solid)
CSS
var(--about-surface)

기본값 var(--accent-solid)

  • :root[data-theme='dark']→ #1b2540
  • :root[data-theme='dark'][data-accent='forest']→ #173029
  • :root[data-theme='dark'][data-accent='coral']→ #35231f
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #1b2540
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])[data-accent='forest']→ #173029
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])[data-accent='coral']→ #35231f
--about-inkAbout section primary text#ffffff
CSS
var(--about-ink)

기본값 #ffffff

  • :root[data-theme='dark']→ #f5f7ff
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #f5f7ff
--about-mutedAbout section secondary text#dce3ff
CSS
var(--about-muted)

기본값 #dce3ff

  • :root[data-accent='forest']→ #d4f5e8
  • :root[data-accent='coral']→ #ffe1d9
  • :root[data-theme='dark']→ #c1c9de
  • :root[data-theme='dark'][data-accent='forest']→ #b7e1d1
  • :root[data-theme='dark'][data-accent='coral']→ #e7c1b8
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #c1c9de
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])[data-accent='forest']→ #b7e1d1
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])[data-accent='coral']→ #e7c1b8
--inverse-surfaceInverse panel surface#101114
CSS
var(--inverse-surface)

기본값 #101114

  • :root[data-theme='dark']→ #f2f4f8
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #f2f4f8
--inverse-inkText on inverse panel#ffffff
CSS
var(--inverse-ink)

기본값 #ffffff

  • :root[data-theme='dark']→ #101114
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #101114
--radius-cardCard corner radius0px
CSS
var(--radius-card)

기본값 0px

  • :root[data-corners='soft']→ 20px
--radius-controlControl corner radius2px
CSS
var(--radius-control)

기본값 2px

  • :root[data-corners='soft']→ 12px
--space-factorMultiplier used by compact spacing1
CSS
var(--space-factor)

기본값 1

  • :root[data-density='compact']→ .8
--font-sansSans-serif font stack; font files are supplied by the app'DM Sans', 'Noto Sans KR', sans-serif
CSS
var(--font-sans)

기본값 'DM Sans', 'Noto Sans KR', sans-serif

테마나 기기 조건에 따른 별도 값이 없어요.

--gutterResponsive page gutterclamp(22px, 4.1vw, 72px)
CSS
var(--gutter)

기본값 clamp(22px, 4.1vw, 72px)

  • @media (max-width: 700px) · :root→ 22px
--control-min-sizeMinimum control size44px
CSS
var(--control-min-size)

기본값 44px

테마나 기기 조건에 따른 별도 값이 없어요.

--text-controlControl text size12px
CSS
var(--text-control)

기본값 12px

테마나 기기 조건에 따른 별도 값이 없어요.

--control-borderBorder of form controls#858d9a
CSS
var(--control-border)

기본값 #858d9a

  • :root[data-theme='dark']→ #737e90
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #737e90
--focus-ringVisible keyboard focus outlinevar(--accent-text)
CSS
var(--focus-ring)

기본값 var(--accent-text)

테마나 기기 조건에 따른 별도 값이 없어요.

--disabled-inkForeground text for disabled controls#727987
CSS
var(--disabled-ink)

기본값 #727987

  • :root[data-theme='dark']→ #99a2b2
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #99a2b2
--disabled-surfaceSurface for disabled controls#e9ecf1
CSS
var(--disabled-surface)

기본값 #e9ecf1

  • :root[data-theme='dark']→ #202631
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #202631
--success-textSuccess status text#176b4e
CSS
var(--success-text)

기본값 #176b4e

  • :root[data-theme='dark']→ #8cdeb7
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #8cdeb7
--success-surfaceSuccess status background#edf8f2
CSS
var(--success-surface)

기본값 #edf8f2

  • :root[data-theme='dark']→ #142b23
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #142b23
--success-lineSuccess status border#3c8668
CSS
var(--success-line)

기본값 #3c8668

  • :root[data-theme='dark']→ #4e9a78
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #4e9a78
--warning-textWarning status text#80520c
CSS
var(--warning-text)

기본값 #80520c

  • :root[data-theme='dark']→ #f3cc83
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #f3cc83
--warning-surfaceWarning status background#fff7e3
CSS
var(--warning-surface)

기본값 #fff7e3

  • :root[data-theme='dark']→ #302719
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #302719
--warning-lineWarning status border#ab751f
CSS
var(--warning-line)

기본값 #ab751f

  • :root[data-theme='dark']→ #b28d46
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #b28d46
--danger-textDanger or validation-error text#b42332
CSS
var(--danger-text)

기본값 #b42332

  • :root[data-theme='dark']→ #ff9ba5
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #ff9ba5
--danger-surfaceDanger or validation-error background#fff1f2
CSS
var(--danger-surface)

기본값 #fff1f2

  • :root[data-theme='dark']→ #351f25
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #351f25
--danger-lineDanger or validation-error border#c64a59
CSS
var(--danger-line)

기본값 #c64a59

  • :root[data-theme='dark']→ #c26b77
  • @media (prefers-color-scheme: dark) · :root:not([data-theme])→ #c26b77
--space-1Spacing step 1 (4px); pair with --space-factor for density-aware spacing4px
CSS
var(--space-1)

기본값 4px

테마나 기기 조건에 따른 별도 값이 없어요.

--space-2Spacing step 2 (8px); pair with --space-factor for density-aware spacing8px
CSS
var(--space-2)

기본값 8px

테마나 기기 조건에 따른 별도 값이 없어요.

--space-3Spacing step 3 (12px); pair with --space-factor for density-aware spacing12px
CSS
var(--space-3)

기본값 12px

테마나 기기 조건에 따른 별도 값이 없어요.

--space-4Spacing step 4 (16px); pair with --space-factor for density-aware spacing16px
CSS
var(--space-4)

기본값 16px

테마나 기기 조건에 따른 별도 값이 없어요.

--space-5Spacing step 5 (24px); pair with --space-factor for density-aware spacing24px
CSS
var(--space-5)

기본값 24px

테마나 기기 조건에 따른 별도 값이 없어요.

--space-6Spacing step 6 (32px); pair with --space-factor for density-aware spacing32px
CSS
var(--space-6)

기본값 32px

테마나 기기 조건에 따른 별도 값이 없어요.

--space-7Spacing step 7 (48px); pair with --space-factor for density-aware spacing48px
CSS
var(--space-7)

기본값 48px

테마나 기기 조건에 따른 별도 값이 없어요.

--space-8Spacing step 8 (64px); pair with --space-factor for density-aware spacing64px
CSS
var(--space-8)

기본값 64px

테마나 기기 조건에 따른 별도 값이 없어요.

--text-xsExtra-small text size12px
CSS
var(--text-xs)

기본값 12px

테마나 기기 조건에 따른 별도 값이 없어요.

--text-smSmall text size14px
CSS
var(--text-sm)

기본값 14px

테마나 기기 조건에 따른 별도 값이 없어요.

--text-baseBase text size16px
CSS
var(--text-base)

기본값 16px

테마나 기기 조건에 따른 별도 값이 없어요.

--text-lgLarge text size20px
CSS
var(--text-lg)

기본값 20px

테마나 기기 조건에 따른 별도 값이 없어요.

--leading-bodyBody text line-height1.6
CSS
var(--leading-body)

기본값 1.6

테마나 기기 조건에 따른 별도 값이 없어요.

--duration-fastFast interaction transition duration140ms
CSS
var(--duration-fast)

기본값 140ms

테마나 기기 조건에 따른 별도 값이 없어요.

--overlay-scrimBackground scrim behind modal overlaysrgba(0, 0, 0, .48)
CSS
var(--overlay-scrim)

기본값 rgba(0, 0, 0, .48)

테마나 기기 조건에 따른 별도 값이 없어요.

--shadow-popoverElevation shadow for menus, select popups, and popovers0 8px 28px rgba(0, 0, 0, .16)
CSS
var(--shadow-popover)

기본값 0 8px 28px rgba(0, 0, 0, .16)

테마나 기기 조건에 따른 별도 값이 없어요.

--shadow-dialogElevation shadow for modal dialogs and sheets0 24px 72px rgba(0, 0, 0, .24)
CSS
var(--shadow-dialog)

기본값 0 24px 72px rgba(0, 0, 0, .24)

테마나 기기 조건에 따른 별도 값이 없어요.

원시 팔레트와 구분선은 본문 글자색으로 쓰지 않아요. 링크에는 --accent-text, 채운 버튼에는 --accent-solid와 --on-accent를 함께 사용하세요.

03 / COMPONENTS

자주 쓰는 화면 요소, 같은 기준으로.

아래 UI는 패키지에서 직접 가져왔어요. 상태를 바꾸고 사용 코드를 확인해 보세요.

@hyeonse/design-system/primitivesReact 19 · 기본 HTML 속성과 ref 지원
SIZE

크기와 레이아웃

5단계

영역의 크기를 바꾸면 안쪽 버튼·입력·카드·표·모달에도 함께 적용돼요. 필요한 요소만 따로 지정할 수도 있어요.

영역 크기
프로젝트 설정저장됨

작업 공간

카드의 안쪽 여백도 크기에 맞춰 바뀌어요.

초대 현황

역할인원
편집자2명
열람자4명

변경 사항 미리보기

모달 안의 요소도 선택한 크기를 이어받아요.

import { SizeProvider, Stack, Grid } from '@hyeonse/design-system/layout';

<SizeProvider size="md">
  <Stack gap="lg">
    <Grid columns={2}>…</Grid>
    <Button>영역 크기 상속</Button>
    <Button size="xs">개별 지정</Button>
  </Stack>
</SizeProvider>

기본 MD 버튼은 36px이에요. 터치 기기에서는 작은 크기도 최소 44px의 조작 영역을 유지해요. 화면 설정의 간격 조절은 선택한 크기 안에서 여백만 바꿔요.

THE COMPONENT LIBRARY

화면에 필요한 요소들을 한곳에.

종류를 고른 뒤 직접 조작해 보세요. 예제의 입력과 동작은 이 화면 안에서만 처리됩니다.

문자, 숫자, 날짜부터 검색과 다중 선택까지.

InputTextareaSelectNativeSelectComboboxMultiSelectSwitchRadioGroupSliderNumberFieldDateFieldFileInputPasswordField
@hyeonse/design-system/fields사용법·지원 범위 보기 ↗
13 FIELDS

입력과 선택 필드

검색어와 선택값, 파일과 날짜를 포함한 공통 폼 요소입니다. 고정된 항목에는 브라우저 기본 선택기를 먼저 사용하고, 사용자 정의 선택기와 비교할 수 있습니다. 제출 결과는 화면에만 표시합니다.

공통 입력 필드 예제

여러 줄을 입력할 수 있어요.

사용자 정의 선택기
알림 사용

스위치를 눌러 바꿔 보세요.

공유 범위

보기 버튼으로 입력을 확인할 수 있어요.

폼 값을 로컬에서만 확인합니다.

기본 버튼·입력·상태 표시

01

Button

동작

행동의 우선순위와 처리 중 상태를 표현해요. 기본 type="button"으로 폼을 뜻하지 않게 제출하는 일을 막습니다.

눌러서 동작을 확인하세요.

TSX
<Button variant="primary">
  변경 사항 저장
</Button>
02 / 03

TextField & Checkbox

레이블·힌트·오류 안내가 입력과 연결돼요. 체크박스는 네이티브 키보드 조작과 폼 값을 그대로 사용합니다.

프로젝트 입력 예제

이름은 언제든 바꿀 수 있어요.

체크하면 이 예제의 안내 문구가 바뀝니다.

로컬 예제

빈 이름으로 제출해 오류 안내를 확인해 보세요.

폼 예제 코드 보기
TSX
import { Button, TextField, Checkbox, Badge }
  from '@hyeonse/design-system/primitives';
import '@hyeonse/design-system/tokens.css';
import '@hyeonse/design-system/components.css';

<form onSubmit={handleSubmit}>
  <TextField label="프로젝트 이름" name="project"
    hint="언제든 바꿀 수 있어요." error={error} required />
  <Checkbox label="팀과 공유하기" name="shared" />
  <Button type="submit" loading={saving}
    loadingLabel="저장 중…">프로젝트 만들기</Button>
</form>
04

Badge

색과 함께 상태를 텍스트로 전해요. 자동 알림 역할을 부여하지 않아 알림이 필요한 곳에서만 직접 정할 수 있어요.

대기선택됨완료확인 필요오류
TSX
<Badge tone="success">완료</Badge>

키보드 Tab으로 이동하고 Enter·Space로 조작해 보세요.

입력 상태 오류에는 안내 문구와 aria-invalid가 함께 적용돼요.

실제 기본값 밀도가 바뀌어도 조작 영역과 레이블은 유지돼요.

04 / PREFERENCES

읽는 사람의 선택까지.

밝기·강조색·간격·모서리를 바꿔 전체 화면의 반응을 확인하세요. 기기의 움직임 감소 설정이 우선해요.

DISPLAY / CONTROL

화면 설정

읽기 편한 화면으로 바꿔 보세요.

테마
강조 색상
간격
모서리
움직임

기기의 움직임 줄이기 설정이 선택한 값보다 우선 적용됩니다.

현재 설정과 연결 코드 보기
JSON
{
  "theme": "system",
  "accent": "cobalt",
  "density": "comfortable",
  "corners": "crisp",
  "motion": "full"
}
TSX
import { createPreferenceScript }
  from '@hyeonse/design-system/preferences';
import { PreferencesProvider, PreferencesPanel }
  from '@hyeonse/design-system/react';

const defaults = { corners: 'soft' } as const;
// CSS보다 먼저 <head>에서 실행
const initialScript = createPreferenceScript(undefined, defaults);

<PreferencesProvider defaults={defaults}>
  <PreferencesPanel locale="ko" />
</PreferencesProvider>

설정은 저장 가능한 환경에서 이 브라우저에 보관돼요. 저장소가 차단돼도 현재 탭의 조작은 계속 사용할 수 있습니다.

05 / GET STARTED

작게 가져와, 바로 연결하기.

CSS만 사용하거나 필요한 React 컴포넌트를 가져올 수 있어요. 전역 리셋이나 앱 전체 이관은 필요하지 않습니다.

  1. 01

    패키지 설치

    소비 프로젝트에서 아래 아카이브 URL을 설치해요. 기존 GitHub v0.3.0 태그에는 기본 컴포넌트 네 개만 있습니다. 릴리스 매니페스트에서 버전과 파일 무결성을 확인할 수 있어요.

    SHELL
    npm install https://design-system.hyeonse.dev/releases/hyeonse-design-system-0.5.0.tgz
  2. 02

    스타일 한 번 불러오기

    토큰을 먼저, 컴포넌트 스타일을 뒤에 불러와요. 글꼴은 앱의 자산으로 준비하세요.

    CSS
    @import '@hyeonse/design-system/tokens.css';
    @import '@hyeonse/design-system/components.css';
  3. 03

    필요한 만큼 사용하기

    필요한 모듈에서 컴포넌트를 가져와요. 화면 설정과 토스트는 각각 Provider를 연결합니다.

    TSX
    import { Button, TextField }
      from '@hyeonse/design-system/primitives';
    
    <TextField label="이름" name="name" />
    <Button onClick={onSave}>저장</Button>

WebKit에서 HDS가 만든 Base UI 초점 가드에는 이름을 붙이고, 고정 선택과 일반 모달에는 브라우저 기본 컴포넌트를 사용합니다. 상위 이슈 #5237 새 창와 보조 기술 검증 범위를 확인하세요.

06 / REFERENCE

코드와 함께 움직이는 문서.

현재 패키지의 공개 선언에서 가져온 API예요. 설치된 버전에서는 hds CLI로도 같은 내용을 찾을 수 있어요.

82개 API

preferencesKeyutility

Default localStorage key: hyeonse-site-preferences.

TS
import { preferencesKey } from '@hyeonse/design-system/preferences';
  • Pass the same key to createPreferenceScript and PreferencesProvider when overriding it.
SHELL
npm exec --no -- hds show preferencesKey --json
defaultPreferencesutility

Default choices: system theme, cobalt accent, comfortable density, crisp corners, full motion.

TS
import { defaultPreferences } from '@hyeonse/design-system/preferences';
  • Use as the baseline when no valid stored choice or site default exists.

This constant does not include site-specific defaults.

SHELL
npm exec --no -- hds show defaultPreferences --json
validatePreferencesutility

Validate each preference against the allowed choices.

TS
import { validatePreferences } from '@hyeonse/design-system/preferences';
  • A valid stored field wins; missing or invalid fields use valid site defaults, then defaultPreferences.

Non-object and array inputs are treated as empty preferences.

SHELL
npm exec --no -- hds show validatePreferences --json
parsePreferencesutility

Parse and validate a stored JSON preference string.

TS
import { parsePreferences } from '@hyeonse/design-system/preferences';
  • Malformed JSON and null fall back through validatePreferences with optional site defaults.
SHELL
npm exec --no -- hds show parsePreferences --json
serializePreferencesutility

Serialize validated preferences to JSON.

TS
import { serializePreferences } from '@hyeonse/design-system/preferences';
  • Invalid fields fall back to package defaults before serialization.

This function does not accept site-specific defaults.

SHELL
npm exec --no -- hds show serializePreferences --json
resolvedThemeutility

Resolve system/light/dark to the effective light or dark theme.

TS
import { resolvedTheme } from '@hyeonse/design-system/preferences';
  • The system choice follows the supplied systemDark boolean.
SHELL
npm exec --no -- hds show resolvedTheme --json
effectiveMotionutility

Resolve the motion choice with the device reduced-motion preference.

TS
import { effectiveMotion } from '@hyeonse/design-system/preferences';
  • A true systemReduced value forces reduced even when the stored choice is full.
  • Device reduced motion takes precedence.
SHELL
npm exec --no -- hds show effectiveMotion --json
createPreferenceScriptutility

Create the inline first-paint preference script with optional key and site defaults.

TS
import { createPreferenceScript } from '@hyeonse/design-system/preferences';
  • Insert the result in the document head before CSS paints.
  • Pass the same storageKey and defaults to PreferencesProvider.
  • Applies the device reduced-motion preference.

The generated script reads storage and media preferences once; PreferencesProvider handles later changes.

SHELL
npm exec --no -- hds show createPreferenceScript --json
preferenceScriptutility

Ready-made first-paint script using the package key and defaults.

TS
import { preferenceScript } from '@hyeonse/design-system/preferences';
  • Insert in the document head before CSS paints.
  • Applies the device reduced-motion preference.

Use createPreferenceScript for a different key or site defaults.

SHELL
npm exec --no -- hds show preferenceScript --json
PreferencesProviderprovider

Provide display preferences and keep document attributes in sync.

TS
import { PreferencesProvider } from '@hyeonse/design-system/react';
컴포넌트가 직접 정의한 props
속성타입필수
childrenReactNode필수
storageKeystring선택
eventNamestring선택
defaultsPartial<Preferences>선택
  • Wrap consumers of usePreferences, ThemeToggle, and PreferencesPanel.
  • The defaults prop supplies valid site defaults for missing or invalid stored fields and reset.
  • The device reduced-motion preference overrides a full-motion choice.

Storage writes may fail; the current tab still updates. Server rendering starts with validated defaults before browser storage is read.

SHELL
npm exec --no -- hds show PreferencesProvider --json
usePreferenceshook

Read preferences and the setPreference/resetPreferences actions from context.

TS
import { usePreferences } from '@hyeonse/design-system/react';
  • Call inside PreferencesProvider.
  • resetPreferences restores the validated site defaults.

Throws when used outside PreferencesProvider.

SHELL
npm exec --no -- hds show usePreferences --json
ThemeTogglecomponent

Cycle theme preference through system, light, and dark.

TS
import { ThemeToggle } from '@hyeonse/design-system/react';
컴포넌트가 직접 정의한 props
속성타입필수
localeLocale선택
  • Render inside PreferencesProvider; locale defaults to ko and also accepts en.
  • Import components.css for the provided visual styles.
  • Native button with a changing accessible label describing current and next modes.

Only theme preference is changed; the effective theme still follows the device in system mode.

SHELL
npm exec --no -- hds show ThemeToggle --json
PreferencesPanelcomponent

Display controls for theme, accent, density, corners, and motion.

TS
import { PreferencesPanel } from '@hyeonse/design-system/react';
컴포넌트가 직접 정의한 props
속성타입필수
localeLocale선택
  • Render inside PreferencesProvider; locale defaults to ko and also accepts en.
  • Import components.css for the provided visual styles.
  • Uses fieldset legends, native radio inputs, pressed-state accent buttons, and a live status.

It controls only the provided display preferences.

SHELL
npm exec --no -- hds show PreferencesPanel --json
Buttoncomponent

Native button with primary, secondary, and ghost visual variants.

TS
import { Button } from '@hyeonse/design-system/primitives';
컴포넌트가 직접 정의한 props
속성타입필수
variant'primary' | 'secondary' | 'ghost'선택
sizeHdsSize선택
loadingboolean선택
loadingLabelstring선택
  • Import from @hyeonse/design-system/primitives and import components.css after tokens.css.
  • Native button attributes and ref are forwarded; type defaults to button. The caller manages loading state.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Native button keyboard behavior.
  • Loading disables the button, sets aria-busy, and uses loadingLabel as visible and accessible text when supplied.

Loading does not start or track an asynchronous operation. Renders a button element, not a link.

SHELL
npm exec --no -- hds show Button --json
TextFieldcomponent

Labeled single-line input with optional hint and error text.

TS
import { TextField } from '@hyeonse/design-system/primitives';
컴포넌트가 직접 정의한 props
속성타입필수
sizeHdsSize선택
inputSizenumber선택
labelstring필수
typeTextInputType선택
hintstring선택
errorstring선택
  • Import from @hyeonse/design-system/primitives and import components.css after tokens.css.
  • Native input attributes and ref are forwarded; className applies to the input element.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • The label targets the supplied id or a generated id.
  • Hint and error IDs are added to aria-describedby alongside a caller-supplied description; an error sets aria-invalid.

Single-line input only; the caller owns validation and error messages.

SHELL
npm exec --no -- hds show TextField --json
Checkboxcomponent

Labeled native checkbox with optional hint and error text.

TS
import { Checkbox } from '@hyeonse/design-system/primitives';
컴포넌트가 직접 정의한 props
속성타입필수
sizeHdsSize선택
inputSizenumber선택
labelstring필수
hintstring선택
errorstring선택
  • Import from @hyeonse/design-system/primitives and import components.css after tokens.css.
  • Native checkbox attributes, checked/defaultChecked, and ref are forwarded; className applies to the input element.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • The label targets the supplied id or a generated id.
  • Hint and error IDs are added to aria-describedby alongside a caller-supplied description; an error sets aria-invalid.
  • readOnly exposes aria-readonly and prevents click changes while retaining focus.

A checkbox has no native readOnly behavior; the component cancels clicks to preserve its value. The caller owns validation and error messages.

SHELL
npm exec --no -- hds show Checkbox --json
Badgecomponent

Noninteractive span badge for a short status or category.

TS
import { Badge } from '@hyeonse/design-system/primitives';
컴포넌트가 직접 정의한 props
속성타입필수
sizeHdsSize선택
tone'neutral' | 'accent' | 'success' | 'warning' | 'danger'선택
  • Import from @hyeonse/design-system/primitives and import components.css after tokens.css.
  • Native span attributes and ref are forwarded; include text that communicates the status without color alone.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Renders a span with its text content; tone alone does not announce meaning.

No interaction or live-region behavior is added.

SHELL
npm exec --no -- hds show Badge --json
Inputcomponent

Styled native single-line input for custom compositions.

TS
import { Input } from '@hyeonse/design-system/fields';
컴포넌트가 직접 정의한 props
속성타입필수
typeTextualType선택
sizeHdsSize선택
inputSizenumber선택
  • Import from @hyeonse/design-system/fields; load tokens.css before components.css.
  • The caller owns validation, error text, and controlled state.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Provide an associated label or aria-label at the call site.
  • Native input semantics and ref are retained.

No built-in label or error message; use a labeled field when those are needed.

SHELL
npm exec --no -- hds show Input --json
Textareacomponent

Labeled native multiline input with hint and error.

TS
import { Textarea } from '@hyeonse/design-system/fields';
컴포넌트가 직접 정의한 props
속성타입필수
labelstring필수
hintstring선택
errorstring선택
sizeHdsSize선택
  • Import from @hyeonse/design-system/fields; load tokens.css before components.css.
  • The caller owns validation, error text, and controlled state.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Label, hint, and error are linked with unique IDs; error sets aria-invalid.
  • Native textarea ref and form behavior remain available.

The caller sets rows, maxLength, and validation rules.

SHELL
npm exec --no -- hds show Textarea --json
Selectcomponent

Labeled single-choice dropdown from fixed options.

TS
import { Select } from '@hyeonse/design-system/fields';
컴포넌트가 직접 정의한 props
속성타입필수
labelstring필수
hintstring선택
errorstring선택
sizeHdsSize선택
optionsreadonly FieldOption[]필수
namestring선택
formstring선택
idstring선택
requiredboolean선택
disabledboolean선택
readOnlyboolean선택
valuestring | null선택
defaultValuestring | null선택
onValueChange(value: string | null) => void선택
placeholderstring선택
classNamestring선택
aria-describedbystring선택
aria-invalidboolean | 'grammar' | 'spelling'선택
refRef<HTMLButtonElement>선택
  • Import from @hyeonse/design-system/fields; load tokens.css before components.css.
  • The caller owns validation, error text, and controlled state.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Base UI manages listbox keyboard navigation, option states, and form submission.
  • Visible label names the trigger; hint and error describe it.

Options are not searchable; use Combobox for filtering. Option values must be unique strings.

SHELL
npm exec --no -- hds show Select --json
NativeSelectcomponent

Labeled browser-native single-choice picker for fixed options.

TS
import { NativeSelect } from '@hyeonse/design-system/fields';
컴포넌트가 직접 정의한 props
속성타입필수
formstring선택
labelstring필수
sizeHdsSize선택
disabledboolean선택
namestring선택
placeholderstring선택
requiredboolean선택
valuestring | null선택
defaultValuestring | null선택
classNamestring선택
idstring선택
aria-describedbystring선택
aria-invalidboolean | 'grammar' | 'spelling'선택
hintstring선택
errorstring선택
optionsreadonly FieldOption[]필수
onValueChange(value: string | null) => void선택
refRef<HTMLSelectElement>선택
  • Import from @hyeonse/design-system/fields; load tokens.css before components.css.
  • The caller owns validation, error text, and controlled state.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • The native select uses the browser and screen reader picker without Base UI focus guards.
  • Visible label, hint, and error are linked to the control.

Option values must be unique nonempty strings; empty string is reserved for the placeholder. Native select has no readOnly mode, and picker appearance follows the browser and operating system.

SHELL
npm exec --no -- hds show NativeSelect --json
Comboboxcomponent

Searchable single-choice field restricted to supplied options.

TS
import { Combobox } from '@hyeonse/design-system/fields';
컴포넌트가 직접 정의한 props
속성타입필수
labelstring필수
hintstring선택
errorstring선택
sizeHdsSize선택
optionsreadonly FieldOption[]필수
namestring선택
formstring선택
idstring선택
requiredboolean선택
disabledboolean선택
readOnlyboolean선택
valuestring | null선택
defaultValuestring | null선택
onValueChange(value: string | null) => void선택
placeholderstring선택
classNamestring선택
aria-describedbystring선택
aria-invalidboolean | 'grammar' | 'spelling'선택
refRef<HTMLInputElement>선택
emptyTextstring선택
openLabelstring선택
inputValuestring선택
defaultInputValuestring선택
onInputValueChange(value: string) => void선택
  • Import from @hyeonse/design-system/fields; load tokens.css before components.css.
  • The caller owns validation, error text, and controlled state.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Base UI manages combobox navigation, announcements, and form submission.
  • Search input has a visible label; the open button has a configurable accessible name.

Typed text is a query, not a free-form submitted value. Option values must be unique strings.

SHELL
npm exec --no -- hds show Combobox --json
MultiSelectcomponent

Searchable multiple-choice field with removable selected chips.

TS
import { MultiSelect } from '@hyeonse/design-system/fields';
컴포넌트가 직접 정의한 props
속성타입필수
formstring선택
labelstring필수
sizeHdsSize선택
disabledboolean선택
namestring선택
placeholderstring선택
readOnlyboolean선택
requiredboolean선택
classNamestring선택
idstring선택
aria-describedbystring선택
aria-invalidboolean | 'grammar' | 'spelling'선택
hintstring선택
errorstring선택
optionsreadonly FieldOption[]필수
refRef<HTMLInputElement>선택
valuereadonly string[]선택
defaultValuereadonly string[]선택
onValueChange(value: string[]) => void선택
emptyTextstring선택
openLabelstring선택
selectedLabelstring선택
removeLabel(label: string) => string선택
chipDescriptionstring선택
inputDescription(count: number) => string선택
inputValuestring선택
defaultInputValuestring선택
onInputValueChange(value: string) => void선택
  • Import from @hyeonse/design-system/fields; load tokens.css before components.css.
  • The caller owns validation, error text, and controlled state.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Base UI manages selection, chip keyboard behavior, and form values.
  • Selected set, removal, and keyboard hints have configurable accessible strings.

Typed text is a query, not a free-form submitted value. Option values must be unique strings.

SHELL
npm exec --no -- hds show MultiSelect --json
Switchcomponent

Labeled binary switch with native form participation.

TS
import { Switch } from '@hyeonse/design-system/fields';
컴포넌트가 직접 정의한 props
속성타입필수
labelstring필수
hintstring선택
errorstring선택
sizeHdsSize선택
idstring선택
namestring선택
formstring선택
valuestring선택
uncheckedValuestring선택
requiredboolean선택
disabledboolean선택
readOnlyboolean선택
checkedboolean선택
defaultCheckedboolean선택
onCheckedChange(checked: boolean) => void선택
refRef<HTMLInputElement>선택
classNamestring선택
aria-describedbystring선택
aria-invalidboolean | 'grammar' | 'spelling'선택
  • Import from @hyeonse/design-system/fields; load tokens.css before components.css.
  • The caller owns validation, error text, and controlled state.
  • A controlled checked value is preserved when reading FormData immediately after form.reset().
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Base UI provides switch semantics and keyboard interaction.
  • Visible text and optional descriptions communicate state without color alone.

An unchecked switch submits no value unless uncheckedValue is supplied.

SHELL
npm exec --no -- hds show Switch --json
RadioGroupcomponent

Labeled set of mutually exclusive choices.

TS
import { RadioGroup } from '@hyeonse/design-system/fields';
컴포넌트가 직접 정의한 props
속성타입필수
labelstring필수
hintstring선택
errorstring선택
sizeHdsSize선택
optionsreadonly FieldOption[]필수
namestring선택
formstring선택
requiredboolean선택
disabledboolean선택
readOnlyboolean선택
valuestring선택
defaultValuestring선택
onValueChange(value: string) => void선택
refRef<HTMLInputElement>선택
classNamestring선택
aria-describedbystring선택
aria-invalidboolean | 'grammar' | 'spelling'선택
  • Import from @hyeonse/design-system/fields; load tokens.css before components.css.
  • The caller owns validation, error text, and controlled state.
  • A controlled selection is preserved when reading FormData immediately after form.reset().
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Base UI provides radio keyboard navigation and form participation.
  • The group is named by visible label and described by hint or error.

Option values must be unique strings.

SHELL
npm exec --no -- hds show RadioGroup --json
Slidercomponent

Labeled native single-value range input.

TS
import { Slider } from '@hyeonse/design-system/fields';
컴포넌트가 직접 정의한 props
속성타입필수
labelstring필수
hintstring선택
errorstring선택
sizeHdsSize선택
inputSizenumber선택
  • Import from @hyeonse/design-system/fields; load tokens.css before components.css.
  • The caller owns validation, error text, and controlled state.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Native range keyboard behavior and form value.
  • Label, hint, and error are linked; provide aria-valuetext for a nonnumeric meaning.

Single thumb only; no readonly mode or dual-ended range.

SHELL
npm exec --no -- hds show Slider --json
NumberFieldcomponent

Labeled numeric entry with increment and decrement controls.

TS
import { NumberField } from '@hyeonse/design-system/fields';
컴포넌트가 직접 정의한 props
속성타입필수
labelstring필수
hintstring선택
errorstring선택
sizeHdsSize선택
idstring선택
namestring선택
formstring선택
requiredboolean선택
disabledboolean선택
readOnlyboolean선택
valuenumber | null선택
defaultValuenumber선택
onValueChange(value: number | null) => void선택
minnumber선택
maxnumber선택
stepnumber | 'any'선택
localeIntl.LocalesArgument선택
placeholderstring선택
incrementLabelstring선택
decrementLabelstring선택
refRef<HTMLInputElement>선택
classNamestring선택
aria-describedbystring선택
aria-invalidboolean | 'grammar' | 'spelling'선택
  • Import from @hyeonse/design-system/fields; load tokens.css before components.css.
  • The caller owns validation, error text, and controlled state.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Base UI provides numeric keyboard controls, bounds, and form participation.
  • Step buttons have configurable accessible labels.

Returns number or null, not a formatted text string.

SHELL
npm exec --no -- hds show NumberField --json
DateFieldcomponent

Labeled native date input.

TS
import { DateField } from '@hyeonse/design-system/fields';
컴포넌트가 직접 정의한 props
속성타입필수
labelstring필수
hintstring선택
errorstring선택
sizeHdsSize선택
inputSizenumber선택
  • Import from @hyeonse/design-system/fields; load tokens.css before components.css.
  • The caller owns validation, error text, and controlled state.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Native date control and form submission.
  • Label, hint, and error are linked with unique IDs.

Picker appearance and date presentation follow the browser and operating system.

SHELL
npm exec --no -- hds show DateField --json
FileInputcomponent

Labeled native file picker.

TS
import { FileInput } from '@hyeonse/design-system/fields';
컴포넌트가 직접 정의한 props
속성타입필수
labelstring필수
hintstring선택
errorstring선택
sizeHdsSize선택
inputSizenumber선택
  • Import from @hyeonse/design-system/fields; load tokens.css before components.css.
  • The caller owns validation, error text, and controlled state.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Native file picker and form submission.
  • Label, hint, and error are linked with unique IDs.

File input values are browser-managed and cannot be controlled with value/defaultValue; use form reset to clear. No readonly mode.

SHELL
npm exec --no -- hds show FileInput --json
PasswordFieldcomponent

Labeled password input with a show or hide button.

TS
import { PasswordField } from '@hyeonse/design-system/fields';
컴포넌트가 직접 정의한 props
속성타입필수
labelstring필수
hintstring선택
errorstring선택
sizeHdsSize선택
inputSizenumber선택
showLabelstring선택
hideLabelstring선택
  • Import from @hyeonse/design-system/fields; load tokens.css before components.css.
  • The caller owns validation, error text, and controlled state.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Reveal button has configurable show and hide labels and pressed state.
  • Password input retains native name, autocomplete, ref, and form behavior.

Visibility state is local to this component.

SHELL
npm exec --no -- hds show PasswordField --json
DropdownMenucomponent

Button-triggered action, checkbox, separator, and nested menus.

TS
import { DropdownMenu } from '@hyeonse/design-system/overlays';
컴포넌트가 직접 정의한 props
속성타입필수
triggerReactElement필수
itemsreadonly MenuEntry[]필수
openboolean선택
defaultOpenboolean선택
onOpenChange(open: boolean) => void선택
sizeHdsSize선택
  • Import from @hyeonse/design-system/overlays and load tokens.css then components.css.
  • Pass a button element as trigger and stable item IDs. Checkbox state is owned by the caller.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Base UI supplies menu keyboard navigation, typeahead, Escape dismissal, outside dismissal, and focus return.
  • Trigger composition preserves forwarded handlers and refs.

The supplied trigger component must forward its ref and DOM props. Danger is visual only; the caller owns confirmation and effects.

SHELL
npm exec --no -- hds show DropdownMenu --json
ContextMenucomponent

Right-click or long-press menu using the same item model as DropdownMenu.

TS
import { ContextMenu } from '@hyeonse/design-system/overlays';
컴포넌트가 직접 정의한 props
속성타입필수
triggerReactElement필수
itemsreadonly MenuEntry[]필수
openboolean선택
defaultOpenboolean선택
onOpenChange(open: boolean) => void선택
sizeHdsSize선택
  • Pass an interactive or labeled region as trigger and the menu entries as items.
  • Provide a visible way to perform important actions outside the context menu.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Base UI supplies right-click, long-press, keyboard operation, Escape dismissal, and focus management.

The supplied trigger component must forward its ref and DOM props. Context menus should supplement visible controls.

SHELL
npm exec --no -- hds show ContextMenu --json
Dialogcomponent

Modal dialog with a title, optional description, body, footer, and close control.

TS
import { Dialog } from '@hyeonse/design-system/overlays';
컴포넌트가 직접 정의한 props
속성타입필수
triggerReactElement필수
titlestring필수
descriptionstring선택
childrenReactNode선택
footerReactNode선택
closeLabelstring선택
openboolean선택
defaultOpenboolean선택
onOpenChange(open: boolean) => void선택
sizeHdsSize선택
  • Pass a button trigger and a required title.
  • Render task content in children and actions in footer.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Base UI supplies modal focus containment, Escape and outside dismissal, and focus return.
  • Close button has a configurable Korean accessible label.

Caller controls business actions in children and footer. The supplied trigger component must forward its ref and DOM props.

SHELL
npm exec --no -- hds show Dialog --json
NativeDialogcomponent

Browser-native modal dialog with a title, optional description, body, footer, and close control.

TS
import { NativeDialog } from '@hyeonse/design-system/overlays';
컴포넌트가 직접 정의한 props
속성타입필수
triggerReactElement필수
titlestring필수
descriptionstring선택
childrenReactNode선택
footerReactNode선택
closeLabelstring선택
openboolean선택
defaultOpenboolean선택
onOpenChange(open: boolean) => void선택
sizeHdsSize선택
  • Import from @hyeonse/design-system/overlays and load tokens.css then components.css.
  • Pass a button trigger and a required title; use this native path when Base UI popup composition is unnecessary.
  • With controlled open, a method="dialog" form requests onOpenChange(false). Keep open true to continue editing.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • showModal supplies the native modal top layer; this wrapper keeps Tab and Shift+Tab inside without Base UI focus guards.
  • Escape, close, outside dismissal, and trigger focus return are checked across browser engines.

Browser and screen-reader presentation can vary; actual VoiceOver speech still needs direct confirmation. The trigger must forward onClick and DOM ARIA props. Nested Base UI popup components can still render their own guards.

SHELL
npm exec --no -- hds show NativeDialog --json
AlertDialogcomponent

Confirmation dialog that calls onConfirm only from its confirm button.

TS
import { AlertDialog } from '@hyeonse/design-system/overlays';
컴포넌트가 직접 정의한 props
속성타입필수
triggerReactElement필수
titlestring필수
descriptionstring선택
childrenReactNode선택
confirmLabelstring필수
cancelLabelstring필수
onConfirm() => void | Promise<void>필수
onError(error: unknown) => void선택
pendingboolean선택
confirmDisabledboolean선택
openboolean선택
defaultOpenboolean선택
onOpenChange(open: boolean) => void선택
sizeHdsSize선택
  • Pass required title, confirmLabel, cancelLabel, and onConfirm.
  • Use pending or confirmDisabled for externally controlled work; a rejected promise keeps the dialog open and is sent to onError.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Base UI supplies alert dialog focus and announcement semantics.
  • Cancel and confirm are separate controls with at least 44px targets on coarse-pointer devices.

An externally controlled open prop must be updated by the caller after onOpenChange. The caller should present an error message when onConfirm rejects.

SHELL
npm exec --no -- hds show AlertDialog --json
Sheetcomponent

Modal side panel with bounded sizes and scrollable content.

TS
import { Sheet } from '@hyeonse/design-system/overlays';
컴포넌트가 직접 정의한 props
속성타입필수
triggerReactElement필수
titlestring필수
descriptionstring선택
childrenReactNode선택
footerReactNode선택
closeLabelstring선택
openboolean선택
defaultOpenboolean선택
onOpenChange(open: boolean) => void선택
sizeHdsSize선택
side'left' | 'right'선택
  • Pass a button trigger and required title.
  • Use side left/right and size xs/sm/md/lg/xl.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Uses Base UI dialog focus containment, dismissal, and return focus.
  • Close button remains visible above scrollable content.

Caller controls content and footer actions.

SHELL
npm exec --no -- hds show Sheet --json
Popovercomponent

Anchored nonmodal content panel with title and close control.

TS
import { Popover } from '@hyeonse/design-system/overlays';
컴포넌트가 직접 정의한 props
속성타입필수
triggerReactElement필수
titlestring필수
descriptionstring선택
childrenReactNode선택
closeLabelstring선택
openboolean선택
defaultOpenboolean선택
onOpenChange(open: boolean) => void선택
sizeHdsSize선택
  • Pass a button trigger, required title, and optional body content.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Base UI manages anchor placement, Escape and outside dismissal, and focus return.
  • Close button has a configurable accessible label.

The supplied trigger component must forward its ref and DOM props.

SHELL
npm exec --no -- hds show Popover --json
Tooltipcomponent

Brief visual hint on hover or focus.

TS
import { Tooltip } from '@hyeonse/design-system/overlays';
컴포넌트가 직접 정의한 props
속성타입필수
triggerReactElement필수
contentstring필수
delaynumber선택
sizeHdsSize선택
  • Pass an accessible, focusable trigger and a short plain-text content string.
  • Keep the trigger accessible without relying on tooltip text alone.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Base UI handles hover/focus timing and Escape.
  • Tooltip does not intercept pointer events.

No interactive content or touch-only instructions. The supplied trigger component must forward its ref and DOM props.

SHELL
npm exec --no -- hds show Tooltip --json
ToastProviderprovider

Scoped, limited stack of transient announcements.

TS
import { ToastProvider } from '@hyeonse/design-system/overlays';
컴포넌트가 직접 정의한 props
속성타입필수
childrenReactNode필수
viewportLabelstring선택
closeLabelstring선택
timeoutnumber선택
limitnumber선택
sizeHdsSize선택
  • Wrap useToast consumers once per independent region.
  • Default viewport label is 알림 and close label is 알림 닫기; timeout defaults to 5000ms and visible limit to 3.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Base UI provides live announcements, F6 viewport focus, and pause behavior.
  • Each toast has a close button with at least a 44px target on coarse-pointer devices.

The provider must mount in a client React tree. Only text title and description are exposed by this wrapper.

SHELL
npm exec --no -- hds show ToastProvider --json
useToasthook

Add and close toasts within the nearest ToastProvider.

TS
import { useToast } from '@hyeonse/design-system/overlays';
  • Call inside ToastProvider.
  • add returns an ID to pass to close.
  • Toast messages are announced by Base UI with priority low.

Throws outside a Base UI Toast provider. Do not use as the sole channel for critical persistent information.

SHELL
npm exec --no -- hds show useToast --json
Tabscomponent

Controlled or uncontrolled tab set.

TS
import { Tabs } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
sizeHdsSize선택
  • Import Tabs from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show Tabs --json
TabsListcomponent

Keyboard navigable tab list.

TS
import { TabsList } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
  • Import TabsList from @hyeonse/design-system/display and load tokens.css then components.css.
SHELL
npm exec --no -- hds show TabsList --json
TabsTabcomponent

Tab trigger linked to a panel.

TS
import { TabsTab } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
  • Import TabsTab from @hyeonse/design-system/display and load tokens.css then components.css.
SHELL
npm exec --no -- hds show TabsTab --json
TabsPanelcomponent

Content panel for a tab.

TS
import { TabsPanel } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
  • Import TabsPanel from @hyeonse/design-system/display and load tokens.css then components.css.
SHELL
npm exec --no -- hds show TabsPanel --json
Accordioncomponent

Single or multiple expandable sections.

TS
import { Accordion } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
sizeHdsSize선택
  • Import Accordion from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show Accordion --json
AccordionItemcomponent

One expandable section.

TS
import { AccordionItem } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
  • Import AccordionItem from @hyeonse/design-system/display and load tokens.css then components.css.
SHELL
npm exec --no -- hds show AccordionItem --json
AccordionHeadercomponent

Semantic heading for an accordion item.

TS
import { AccordionHeader } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
  • Import AccordionHeader from @hyeonse/design-system/display and load tokens.css then components.css.
SHELL
npm exec --no -- hds show AccordionHeader --json
AccordionTriggercomponent

Button controlling an accordion panel.

TS
import { AccordionTrigger } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
  • Import AccordionTrigger from @hyeonse/design-system/display and load tokens.css then components.css.
SHELL
npm exec --no -- hds show AccordionTrigger --json
AccordionPanelcomponent

Expandable accordion content.

TS
import { AccordionPanel } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
  • Import AccordionPanel from @hyeonse/design-system/display and load tokens.css then components.css.
SHELL
npm exec --no -- hds show AccordionPanel --json
Collapsiblecomponent

Independent expandable region.

TS
import { Collapsible } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
sizeHdsSize선택
  • Import Collapsible from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show Collapsible --json
CollapsibleTriggercomponent

Button controlling a collapsible panel.

TS
import { CollapsibleTrigger } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
  • Import CollapsibleTrigger from @hyeonse/design-system/display and load tokens.css then components.css.
SHELL
npm exec --no -- hds show CollapsibleTrigger --json
CollapsiblePanelcomponent

Collapsible content.

TS
import { CollapsiblePanel } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
  • Import CollapsiblePanel from @hyeonse/design-system/display and load tokens.css then components.css.
SHELL
npm exec --no -- hds show CollapsiblePanel --json
Breadcrumbcomponent

Ordered navigation path.

TS
import { Breadcrumb } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
itemsreadonly BreadcrumbItem[]필수
separatorReactNode선택
sizeHdsSize선택
  • Import Breadcrumb from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show Breadcrumb --json
Paginationcomponent

Finite page navigation with previous and next controls.

TS
import { Pagination } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
pagenumber필수
pageCountnumber필수
onPageChange(page: number) => void필수
locale'ko' | 'en'선택
siblingCountnumber선택
sizeHdsSize선택
  • Import Pagination from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show Pagination --json
Steppercomponent

Read only ordered process steps.

TS
import { Stepper } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
stepsreadonly StepperItem[]필수
currentStepnumber필수
sizeHdsSize선택
  • Import Stepper from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show Stepper --json
SegmentedControlcomponent

Single or multiple selection toggle group.

TS
import { SegmentedControl } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
sizeHdsSize선택
  • Import SegmentedControl from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show SegmentedControl --json
Togglecomponent

Pressed state button.

TS
import { Toggle } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
sizeHdsSize선택
  • Import Toggle from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show Toggle --json
Cardcomponent

Content surface with optional heading, description and footer.

TS
import { Card } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
titleReactNode선택
descriptionReactNode선택
footerReactNode선택
sizeHdsSize선택
  • Import Card from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show Card --json
Tablecomponent

Semantic table with keyboard accessible overflow container.

TS
import { Table } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
containerClassNamestring선택
scrollLabelstring선택
sizeHdsSize선택
  • Import Table from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show Table --json
TableHeadercomponent

Table header section.

TS
import { TableHeader } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
  • Import TableHeader from @hyeonse/design-system/display and load tokens.css then components.css.
SHELL
npm exec --no -- hds show TableHeader --json
TableBodycomponent

Table body section.

TS
import { TableBody } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
  • Import TableBody from @hyeonse/design-system/display and load tokens.css then components.css.
SHELL
npm exec --no -- hds show TableBody --json
TableRowcomponent

Table row.

TS
import { TableRow } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
  • Import TableRow from @hyeonse/design-system/display and load tokens.css then components.css.
SHELL
npm exec --no -- hds show TableRow --json
TableHeadcomponent

Column or row header cell.

TS
import { TableHead } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
  • Import TableHead from @hyeonse/design-system/display and load tokens.css then components.css.
SHELL
npm exec --no -- hds show TableHead --json
TableCellcomponent

Data cell.

TS
import { TableCell } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
  • Import TableCell from @hyeonse/design-system/display and load tokens.css then components.css.
SHELL
npm exec --no -- hds show TableCell --json
TableCaptioncomponent

Table caption.

TS
import { TableCaption } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
  • Import TableCaption from @hyeonse/design-system/display and load tokens.css then components.css.
SHELL
npm exec --no -- hds show TableCaption --json
DataTablecomponent

Controlled semantic table with sorting, single-row selection, and finite pagination.

TS
import { DataTable } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
captionstring필수
columnsreadonly DataTableColumn<Row>[]필수
rowsreadonly Row[]필수
getRowId(row: Row) => string필수
getRowLabel(row: Row) => string선택
sortDataTableSort | null필수
onSortChange(sort: DataTableSort) => void필수
selectedRowIdstring | null필수
onSelectedRowIdChange(rowId: string | null) => void필수
pagenumber필수
pageCountnumber필수
onPageChange(page: number) => void필수
pageSizenumber필수
totalRowsnumber필수
state'ready' | 'loading' | 'error'선택
emptyMessagestring선택
errorMessagestring선택
locale'ko' | 'en'선택
sizeHdsSize선택
classNamestring선택
  • Import DataTable from @hyeonse/design-system/display and load tokens.css before components.css.
  • Pass already sorted current-page rows, stable row IDs, and controlled sort, selection, page, pageCount, totalRows, and pageSize.
  • Keep selection by stable ID when it leaves the current page; clear it explicitly when a record is deleted.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
  • Uses a captioned native table with aria-sort on the active column, labeled sort buttons and row checkboxes.
  • Moves focus to the named table scroll region after pagination; announces the current range and off-page selection.

Sorting, paging, and data fetching are controlled by the application.

SHELL
npm exec --no -- hds show DataTable --json
Alertcomponent

Status or urgent message with semantic role.

TS
import { Alert } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
tone'info' | 'success' | 'warning' | 'danger'선택
titleReactNode선택
sizeHdsSize선택
  • Import Alert from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show Alert --json
Avatarcomponent

Image with visible fallback on failure.

TS
import { Avatar } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
srcstring선택
altstring필수
fallbackReactNode필수
sizeHdsSize선택
  • Import Avatar from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show Avatar --json
Separatorcomponent

Decorative or semantic divider.

TS
import { Separator } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
decorativeboolean선택
sizeHdsSize선택
  • Import Separator from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show Separator --json
Skeletoncomponent

Decorative loading placeholder.

TS
import { Skeleton } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
widthstring | number선택
heightstring | number선택
sizeHdsSize선택
  • Import Skeleton from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show Skeleton --json
Spinnercomponent

Labeled loading status.

TS
import { Spinner } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
labelstring선택
sizeHdsSize선택
  • Import Spinner from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show Spinner --json
Progresscomponent

Determinate or indeterminate progress indicator.

TS
import { Progress } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
valuenumber선택
maxnumber선택
labelstring필수
sizeHdsSize선택
  • Import Progress from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show Progress --json
EmptyStatecomponent

Content for an empty result.

TS
import { EmptyState } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
titleReactNode필수
descriptionReactNode선택
actionReactNode선택
sizeHdsSize선택
  • Import EmptyState from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show EmptyState --json
AspectRatiocomponent

Aspect ratio box.

TS
import { AspectRatio } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
rationumber선택
sizeHdsSize선택
  • Import AspectRatio from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show AspectRatio --json
ScrollAreacomponent

Labeled keyboard scroll region.

TS
import { ScrollArea } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
maxHeightstring | number선택
labelstring필수
sizeHdsSize선택
  • Import ScrollArea from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show ScrollArea --json
Labelcomponent

Native form label.

TS
import { Label } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
requiredboolean선택
sizeHdsSize선택
  • Import Label from @hyeonse/design-system/display and load tokens.css then components.css.
  • size accepts xs/sm/md/lg/xl; omitted size inherits the nearest SizeProvider or layout, falling back to md. A child size overrides its parent, including across portals.
SHELL
npm exec --no -- hds show Label --json
VisuallyHiddencomponent

Screen reader visible text.

TS
import { VisuallyHidden } from '@hyeonse/design-system/display';
컴포넌트가 직접 정의한 props
속성타입필수
classNamestring선택
  • Import VisuallyHidden from @hyeonse/design-system/display and load tokens.css then components.css.
SHELL
npm exec --no -- hds show VisuallyHidden --json
SizeProviderprovider

Provide one size to nested components, including React portals.

TS
import { SizeProvider } from '@hyeonse/design-system/layout';
컴포넌트가 직접 정의한 props
속성타입필수
sizeSize필수
childrenReactNode선택
  • Pass one required size: xs, sm, md, lg, or xl; adds no DOM element.
  • Children inherit this size unless they supply an explicit size.
  • Touch controls retain at least 44px targets.

Layout adds no application landmarks or route behavior.

SHELL
npm exec --no -- hds show SizeProvider --json
Stackcomponent

Vertical layout with inherited size and optional gap override.

TS
import { Stack } from '@hyeonse/design-system/layout';
컴포넌트가 직접 정의한 props
속성타입필수
sizeSize선택
gapSize선택
align'start' | 'center' | 'end' | 'stretch'선택
  • Use size for child components and gap for spacing only.
  • Omitted size inherits the nearest provider or layout; default md. Explicit child size wins.
  • Touch controls retain at least 44px targets.

Layout adds no application landmarks or route behavior.

SHELL
npm exec --no -- hds show Stack --json
Inlinecomponent

Wrapping horizontal layout with alignment and justification.

TS
import { Inline } from '@hyeonse/design-system/layout';
컴포넌트가 직접 정의한 props
속성타입필수
sizeSize선택
gapSize선택
align'start' | 'center' | 'end' | 'stretch'선택
justify'start' | 'center' | 'end' | 'between'선택
wrapboolean선택
  • Use wrap=false only when content is known to fit; wrapping is the default.
  • Omitted size inherits the nearest provider or layout; default md. Explicit child size wins.
  • Touch controls retain at least 44px targets.

Layout adds no application landmarks or route behavior.

SHELL
npm exec --no -- hds show Inline --json
Gridcomponent

Responsive grid with a preferred column count.

TS
import { Grid } from '@hyeonse/design-system/layout';
컴포넌트가 직접 정의한 props
속성타입필수
sizeSize선택
gapSize선택
columns1 | 2 | 3 | 4선택
minItemWidthstring선택
  • columns accepts 1–4; columns collapse as available width drops below minItemWidth.
  • Omitted size inherits the nearest provider or layout; default md. Explicit child size wins.
  • Touch controls retain at least 44px targets.

Layout adds no application landmarks or route behavior.

SHELL
npm exec --no -- hds show Grid --json
Containercomponent

Centered fluid content container with a size-based maximum width.

TS
import { Container } from '@hyeonse/design-system/layout';
컴포넌트가 직접 정의한 props
속성타입필수
sizeSize선택
fluidboolean선택
  • Use fluid to remove the maximum width while retaining scaled horizontal padding.
  • Omitted size inherits the nearest provider or layout; default md. Explicit child size wins.
  • Touch controls retain at least 44px targets.

Layout adds no application landmarks or route behavior.

SHELL
npm exec --no -- hds show Container --json

HTML 기본 속성과 ref는 각 컴포넌트의 공개 타입에 포함돼요. 더 자세한 선언·상태·한계는 카탈로그 JSON과 전체 참조에서 확인하세요.