Lynx

Callout

사용자에게 중요한 정보나 팁을 시각적으로 강조하여 전달하는 메시지 컴포넌트입니다.

Engine ≥ 3.6
사용 가능 버전@seed-design/[email protected], @seed-design/[email protected]
Lynx 예제를 불러오는 중입니다.

설치

npx @seed-design/cli@latest add ui:callout

속성

Callout

Prop

Type

prefixIcon?React.ReactElement<LynxIconElementProps, string | React.JSXElementConstructor<any>> | undefined
title?React.ReactNode
descriptionReact.ReactNode
linkProps?SeedCallout.LinkProps | undefined

ActionableCallout

Prop

Type

prefixIcon?React.ReactElement<LynxIconElementProps, string | React.JSXElementConstructor<any>> | undefined
title?React.ReactNode
descriptionReact.ReactNode

DismissibleCallout

Prop

Type

prefixIcon?React.ReactElement<LynxIconElementProps, string | React.JSXElementConstructor<any>> | undefined
title?React.ReactNode
descriptionReact.ReactNode
linkProps?SeedCallout.LinkProps | undefined
dismissLabel?string | undefined

사용법

import { Callout } from "@/components/ui/callout";

export function App() {
  return <Callout title="알림" description="새로운 소식을 확인해 보세요." />;
}

예시

콘텐츠 구성

텍스트만

Lynx 예제를 불러오는 중입니다.

아이콘 포함

Lynx 예제를 불러오는 중입니다.

제목 텍스트 포함

Lynx 예제를 불러오는 중입니다.

링크 레이블 포함

ActionableCallout에서는 linkProps를 제공하지 않습니다.

Lynx 예제를 불러오는 중입니다.

모든 요소 포함

Lynx 예제를 불러오는 중입니다.

톤

tone은 neutral, informative, positive, warning, critical, magic을 지원합니다. 기본값은 neutral입니다.

중립 (기본값)

Lynx 예제를 불러오는 중입니다.

정보

Lynx 예제를 불러오는 중입니다.

긍정

Lynx 예제를 불러오는 중입니다.

경고

Lynx 예제를 불러오는 중입니다.

위험

Lynx 예제를 불러오는 중입니다.

매직

Lynx 예제를 불러오는 중입니다.

웹 버전과의 차이

  • 탭 이벤트는 onClick 대신 bindtap 또는 main-thread:bindtap으로 받습니다.
  • 접근성은 HTML 의미 요소와 ARIA 대신 Lynx의 accessibility-* 속성을 사용합니다.
  • ActionableCallout은 bindtap이 없어도 눌림 피드백과 button 역할을 적용합니다.

Lynx 미지원 기능

  • asChild를 지원하지 않습니다.
  • 링크 문구는 linkProps.children, 탭 동작은 linkProps.bindtap으로 전달하세요.

Last updated on

목차