File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ import { test } from "vitest" ;
2+
3+ test . todo ( "renders children correctly" ) ;
4+
5+ test . todo ( "applies the correct tone based on the 'tone' prop" ) ;
6+
7+ test . todo ( "applies the correct font size based on the 'size' prop" ) ;
8+
9+ test . todo ( "applies the correct font weight based on the 'weight' prop" ) ;
10+
11+ test . todo ( "renders with reduced contrast when 'muted' is true" ) ;
12+
13+ test . todo ( "renders with underline when 'underline' is true" ) ;
14+
15+ test . todo ( "forwards additional anchor props like 'href' and 'target'" ) ;
16+
17+ test . todo ( "adds rel='noopener noreferrer' when target is '_blank'" ) ;
18+
19+ test . todo ( "can be used with Icon component" ) ;
Original file line number Diff line number Diff line change 1+ import type { AnchorHTMLAttributes , PropsWithChildren } from "react" ;
2+ import type { Tone } from "../../tokens/colors" ;
3+ import type { FontSize , FontWeight } from "../../tokens/typography" ;
4+
5+ interface LinkProps extends AnchorHTMLAttributes < HTMLAnchorElement > {
6+ /** ์์กฐ */
7+ tone ?: Tone ;
8+ /** ํฌ๊ธฐ */
9+ size ?: FontSize ;
10+ /** ๊ตต๊ธฐ */
11+ weight ?: FontWeight ;
12+ /** ๋ช
์๋น ๋ฎ์ถ์ง */
13+ muted ?: boolean ;
14+ /** ๋งํฌ์ ๋ฐ์ค ํ์ ์ฌ๋ถ */
15+ underline ?: boolean ;
16+ }
17+
18+ export function Link ( { children } : PropsWithChildren < LinkProps > ) {
19+ return < > { children } </ > ;
20+ }
You canโt perform that action at this time.
0 commit comments