본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

@atlaskit/primitives

원문 보기 위키 갱신

프리미티브(Primitive)는 컴파일 스타일링(compiled styling)을 지원하는 레이아웃, 탐색, 상호작용용 기본 컴포넌트들의 모음이에요. 디자인 토큰 기반의 스타일을 효율적으로 적용할 수 있어요.

출처: 문서

본문

Anchor 컴포넌트

컴파일 스타일링을 지원하는, 탐색 링크용 기본 Anchor 컴포넌트예요.

  • Keywords: anchor, link, navigation, href, url, primitive, compiled
  • Categories: primitive
  • Status: general-availability

예시

import { Anchor } from '@atlaskit/primitives/compiled/anchor';
const _default_1: React.JSX.Element[] = [
	<Anchor href="https://atlassian.design">Atlassian Design System</Anchor>,
	<Anchor href="/docs" target="_blank">
		Open docs
	</Anchor>,
];
export default _default_1;

Props

Prop Type Description
children string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | React.ReactPortal Elements to be rendered inside the Anchor
href string | RouterLinkConfig Standard links can be provided as a string, which should be mapped to the
underlying router link component (required)
newWindowLabel string Override the default text to signify that a link opens in a new window
onClick (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent) => void Handler called on click
xcss false | (XCSSValue<"appearance" | "grid" | "clipPath" | "filter" | "marker" | "mask" | "borderColor" | "translate" | "content" | "color" | "top" | "bottom" | "right" | "left" | "backgroundColor" | ... 486 more ... | "glyphOrientationVertical", DesignTokenStyles, ""> & ... 4 more ... & { ...; }) Apply a subset of permitted styles powered by Atlassian Design System design tokens

사용 지침

  • 다른 페이지나 섹션으로 이동하는 탐색 링크에 사용해요.
  • 성능을 위해 컴파일 스타일링을 활용해요.
  • 적절한 링크 스타일과 상태를 사용해요.
  • 링크 동작과 target 속성을 고려해요.

콘텐츠 지침

  • 명확하고 설명적인 링크 텍스트를 사용해요.
  • 일관된 링크 스타일을 유지해요.
  • 링크의 맥락과 목적지를 고려해요.

접근성 지침

  • 목적지를 설명하는 명확한 링크 텍스트를 제공해요.
  • 링크에 적절한 ARIA 속성을 사용해요.
  • 키보드 탐색을 지원해요.
  • 링크 상태에 대한 명확한 시각적 표시를 제공해요.
  • 스크린 리더를 위해 설명적인 링크 텍스트를 사용해요.

Bleed 컴포넌트

컴파일 스타일링을 지원하며, 콘텐츠를 컨테이너 경계 밖으로 확장해 주는 기본 Bleed 컴포넌트예요.

  • Keywords: bleed, layout, margin, spacing, edge, primitive, compiled
  • Categories: primitive
  • Status: general-availability

예시

import { Bleed } from '@atlaskit/primitives/compiled/bleed';
import { Box } from '@atlaskit/primitives/compiled/box';
const _default_1: React.JSX.Element[] = [
	<Box padding="space.200" backgroundColor="color.background.neutral.subtle">
		<Bleed inline="space.100">
			<Box backgroundColor="color.background.brand.bold" padding="space.100">
				Bleed content
			</Box>
		</Bleed>
	</Box>,
];
export default _default_1;

Props

Prop Type Description
all "space.025" | "space.050" | "space.100" | "space.150" | "space.200" Bleed along both axis
block "space.025" | "space.050" | "space.100" | "space.150" | "space.200" Bleed along the block axis
children string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal Elements to be rendered inside the Flex (required)
inline "space.025" | "space.050" | "space.100" | "space.150" | "space.200" Bleed along the inline axis
role string Accessible role
xcss false | (XCSSValue<"appearance" | "grid" | "clipPath" | "filter" | "marker" | "mask" | "borderColor" | "translate" | "content" | "color" | "top" | "bottom" | "right" | "left" | "backgroundColor" | ... 486 more ... | "glyphOrientationVertical", DesignTokenStyles, ""> & ... 4 more ... & { ...; }) Apply a subset of permitted styles powered by Atlassian Design System design tokens

사용 지침

  • 콘텐츠를 컨테이너 여백 밖으로 확장해야 할 때 사용해요.
  • 성능을 위해 컴파일 스타일링을 활용해요.
  • 적절한 bleed 방향과 크기를 사용해요.
  • 반응형 동작과 컨테이너 제약을 고려해요.

콘텐츠 지침

  • 적절한 레이아웃 bleed에 사용해요.
  • 일관된 bleed 패턴을 유지해요.
  • 콘텐츠 계층과 시각적 흐름을 고려해요.

Box 컴포넌트

컴파일 스타일링을 지원하는, 레이아웃과 컨테이너 용도의 기본 Box 컴포넌트예요.

  • Keywords: box, container, div, layout, primitive, compiled
  • Categories: primitive
  • Status: general-availability

예시

/**
 * @jsxRuntime classic
 * @jsx jsx
 */
import type { JSX } from 'react';
import { cssMap, jsx } from '@atlaskit/css';
import { Box } from '@atlaskit/primitives/compiled/box';
import { token } from '@atlaskit/tokens';
const styles = cssMap({
	box: {
		paddingTop: token('space.200'),
		paddingRight: token('space.200'),
		paddingBottom: token('space.200'),
		paddingLeft: token('space.200'),
		backgroundColor: token('color.background.neutral.subtle'),
	},
});
const _default_1: JSX.Element[] = [
	<Box padding="space.200" backgroundColor="color.background.neutral.subtle">
		Basic box
	</Box>,
	<Box xcss={styles.box}>Styled box</Box>,
];
export default _default_1;

Props

Prop Type Description
as "object" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "canvas" | "caption" | "center" | "cite" | ... 98 more ... | "set" The DOM element to render as the Box
backgroundColor "utility.elevation.surface.current" | "elevation.surface" | "elevation.surface.container" | "elevation.surface.overlay" | "elevation.surface.raised" | "elevation.surface.sunken" | ... 223 more ... | "elevation.surface.raised.pressed" Token representing background color with a built-in fallback value
xcss false | (XCSSValue<"appearance" | "grid" | "clipPath" | "filter" | "marker" | "mask" | "borderColor" | "translate" | "content" | "color" | "top" | "bottom" | "right" | "left" | "backgroundColor" | ... 485 more ... | "glyphOrientationVertical", DesignTokenStyles, ""> & ... 4 more ... & { ...; }) Apply a subset of permitted styles powered by Atlassian Design System design tokens

사용 지침

  • 기본적인 레이아웃과 컨테이너 용도에 사용해요.
  • 성능을 위해 컴파일 스타일링을 활용해요.
  • 적절한 간격과 레이아웃 props를 사용해요.
  • 가능하면 시맨틱 HTML을 고려해요.

콘텐츠 지침

  • 적절한 레이아웃 용도로 사용해요.
  • 일관된 간격과 레이아웃 패턴을 유지해요.
  • 접근성과 시맨틱 구조를 고려해요.

Flex 컴포넌트

컴파일 스타일링을 지원하는, flexbox 레이아웃용 기본 Flex 컴포넌트예요.

  • Keywords: flex, layout, flexbox, alignment, primitive, compiled
  • Categories: primitive
  • Status: general-availability

예시

import { Box } from '@atlaskit/primitives/compiled/box';
import { Flex } from '@atlaskit/primitives/compiled/flex';
const _default_1: React.JSX.Element[] = [
	<Flex gap="space.100" alignItems="center">
		<Box backgroundColor="color.background.accent.blue.subtle" padding="space.100">
			Item 1
		</Box>
		<Box backgroundColor="color.background.accent.green.subtle" padding="space.100">
			Item 2
		</Box>
	</Flex>,
];
export default _default_1;

Props

Prop Type Description
alignItems "center" | "baseline" | "end" | "start" | "stretch" Used to align children along the cross axis
as "div" | "dl" | "li" | "ol" | "span" | "ul" The DOM element to render as the Flex
children string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal Elements to be rendered inside the Flex (required)
columnGap "space.025" | "space.050" | "space.100" | "space.150" | "space.200" | "space.0" | "space.075" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" Represents the space between each child
direction "row" | "column" Represents the flex direction property of CSS flexbox
gap "space.025" | "space.050" | "space.100" | "space.150" | "space.200" | "space.0" | "space.075" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" Represents the space between each child
justifyContent "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | "stretch" Used to align children along the main axis
role string Accessible role
rowGap "space.025" | "space.050" | "space.100" | "space.150" | "space.200" | "space.0" | "space.075" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" Represents the space between each child
wrap "nowrap" | "wrap" Represents the flex wrap property of CSS flexbox
xcss false | (XCSSValue<"appearance" | "grid" | "clipPath" | "filter" | "marker" | "mask" | "borderColor" | "translate" | "content" | "color" | "top" | "bottom" | "right" | "left" | "backgroundColor" | ... 486 more ... | "glyphOrientationVertical", DesignTokenStyles, ""> & ... 4 more ... & { ...; }) Apply a subset of permitted styles powered by Atlassian Design System design tokens

사용 지침

  • flexbox 레이아웃이 필요할 때 사용해요.
  • 성능을 위해 컴파일 스타일링을 활용해요.
  • 적절한 flex 속성과 정렬을 사용해요.
  • 반응형 동작을 고려해요.

콘텐츠 지침

  • 적절한 flex 레이아웃에 사용해요.
  • 일관된 flex 패턴을 유지해요.
  • 콘텐츠 정렬과 배치를 고려해요.

Focusable 컴포넌트

컴파일 스타일링을 지원하는, 키보드 탐색과 포커스 관리를 위한 기본 Focusable 컴포넌트예요.

  • Keywords: focusable, focus, keyboard, navigation, accessibility, primitive, compiled
  • Categories: primitive
  • Status: general-availability

예시

import { Box } from '@atlaskit/primitives/compiled/box';
import { Focusable } from '@atlaskit/primitives/compiled/focusable';
const _default_1: React.JSX.Element[] = [
	<Focusable>
		<Box padding="space.200" backgroundColor="color.background.neutral.subtle">
			Focusable content
		</Box>
	</Focusable>,
];
export default _default_1;

Props

Prop Type Description
as "symbol" | "object" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "canvas" | "caption" | "center" | ... 156 more ... | "view" The DOM element to render as the Focusable element
children string | number | boolean | ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | React.ReactPortal
isInset boolean Controls whether the focus ring should be applied around or within the composed element
xcss false | (XCSSValue<"appearance" | "grid" | "clipPath" | "filter" | "marker" | "mask" | "borderColor" | "translate" | "content" | "color" | "top" | "bottom" | "right" | "left" | "backgroundColor" | ... 486 more ... | "glyphOrientationVertical", DesignTokenStyles, ""> & ... 4 more ... & { ...; }) Apply a subset of permitted styles powered by Atlassian Design System design tokens

사용 지침

  • 키보드 포커스가 필요한 요소에 사용해요.
  • 성능을 위해 컴파일 스타일링을 활용해요.
  • 적절한 포커스 관리를 사용해요.
  • 키보드 탐색 패턴을 고려해요.

콘텐츠 지침

  • 적절한 포커스 가능 콘텐츠에 사용해요.
  • 일관된 포커스 패턴을 유지해요.
  • 키보드 탐색 흐름을 고려해요.

접근성 지침

  • 명확한 포커스 표시를 제공해요.
  • 적절한 탭 순서와 탐색을 사용해요.
  • 키보드 접근성을 보장해요.
  • 포커스 상태에 대한 명확한 시각적 피드백을 제공해요.
  • 적절한 ARIA 속성을 사용해요.

Grid 컴포넌트

컴파일 스타일링을 지원하는, CSS Grid 레이아웃용 기본 Grid 컴포넌트예요.

  • Keywords: grid, layout, css-grid, alignment, primitive, compiled
  • Categories: primitive
  • Status: general-availability

예시

import { cssMap } from '@atlaskit/css';
import { Box } from '@atlaskit/primitives/compiled/box';
import { Grid } from '@atlaskit/primitives/compiled/grid';
const styles = cssMap({
	grid: {
		gridTemplateColumns: '1fr 1fr',
	},
});
const _default_1: React.JSX.Element[] = [
	<Grid gap="space.200" xcss={styles.grid}>
		<Box backgroundColor="color.background.accent.blue.subtle" padding="space.200">
			Grid item 1
		</Box>
		<Box backgroundColor="color.background.accent.green.subtle" padding="space.200">
			Grid item 2
		</Box>
	</Grid>,
];
export default _default_1;

Props

Prop Type Description
alignContent "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | "stretch" Used to align the grid along the block axis
alignItems "center" | "baseline" | "end" | "start" | "stretch" Used to align children along the block axis
as "div" | "ol" | "span" | "ul" The DOM element to render as the Flex
autoFlow "row" | "column" | "dense" | "row dense" | "column dense" Specifies how auto-placed items get flowed into the grid
children string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal Elements to be rendered inside the grid (required)
columnGap "space.025" | "space.050" | "space.100" | "space.150" | "space.200" | "space.0" | "space.075" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" Represents the space between each column
gap "space.025" | "space.050" | "space.100" | "space.150" | "space.200" | "space.0" | "space.075" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" Represents the space between each child across both axes
id string HTML id attrubute
justifyContent "center" | "end" | "start" | "space-around" | "space-between" | "space-evenly" | "stretch" Used to align children along the inline axis
role string Accessible role
rowGap "space.025" | "space.050" | "space.100" | "space.150" | "space.200" | "space.0" | "space.075" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" Represents the space between each row
xcss false | (XCSSValue<"appearance" | "grid" | "clipPath" | "filter" | "marker" | "mask" | "borderColor" | "translate" | "content" | "color" | "top" | "bottom" | "right" | "left" | "backgroundColor" | ... 486 more ... | "glyphOrientationVertical", DesignTokenStyles, ""> & ... 4 more ... & { ...; }) Apply a subset of permitted styles powered by Atlassian Design System design tokens

사용 지침

  • CSS Grid 레이아웃이 필요할 때 사용해요.
  • 성능을 위해 컴파일 스타일링을 활용해요.
  • 적절한 grid 속성과 정렬을 사용해요.
  • 반응형 동작을 고려해요.

콘텐츠 지침

  • 적절한 grid 레이아웃에 사용해요.
  • 일관된 grid 패턴을 유지해요.
  • 콘텐츠 정렬과 배치를 고려해요.

Inline 컴포넌트

일관된 간격을 제공하는, 가로 방향 레이아웃용 기본 Inline 컴포넌트예요.

  • Keywords: inline, layout, horizontal, spacing, primitive, compiled
  • Categories: primitive
  • Status: general-availability

예시

import AddIcon from '@atlaskit/icon/core/add';
import { Inline } from '@atlaskit/primitives/compiled/inline';
import { Text } from '@atlaskit/primitives/compiled/text';
const _default_1: React.JSX.Element[] = [
	<Inline space="space.100">
		<AddIcon label="Add item" />
		<Text>Add item</Text>
	</Inline>,
];
export default _default_1;

Props

Prop Type Description
alignBlock "center" | "baseline" | "end" | "start" | "stretch" Used to align children along the block axis (typically vertical)
alignInline "center" | "end" | "start" | "stretch" Used to align children along the inline axis (typically horizontal)
as "div" | "dl" | "li" | "ol" | "span" | "ul" The DOM element to render as the Inline
children string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal Elements to be rendered inside the Inline (required)
grow "fill" | "hug" Used to set whether the container should grow to fill the available space
role string Accessible role
rowSpace "space.025" | "space.050" | "space.100" | "space.150" | "space.200" | "space.0" | "space.075" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" Represents the space between rows when content wraps
separator string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal Renders a separator string between each child
shouldWrap boolean Used to set whether children are forced onto one line or will wrap onto multiple lines
space "space.025" | "space.050" | "space.100" | "space.150" | "space.200" | "space.0" | "space.075" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" Represents the space between each child
spread string Used to distribute the children along the main axis
xcss false | (XCSSValue<"appearance" | "grid" | "clipPath" | "filter" | "marker" | "mask" | "borderColor" | "translate" | "content" | "color" | "top" | "bottom" | "right" | "left" | "backgroundColor" | ... 486 more ... | "glyphOrientationVertical", DesignTokenStyles, ""> & ... 4 more ... & { ...; }) Apply a subset of permitted styles powered by Atlassian Design System design tokens

사용 지침

  • 가로 방향 레이아웃이 필요할 때 사용해요.
  • 성능을 위해 컴파일 스타일링을 활용해요.
  • 적절한 간격과 정렬 props를 사용해요.
  • 줄바꿈 동작을 고려해요.

콘텐츠 지침

  • 적절한 가로 방향 그룹핑에 사용해요.
  • 일관된 간격 패턴을 유지해요.
  • 콘텐츠 흐름과 가독성을 고려해요.

MetricText 컴포넌트

컴파일 스타일링을 지원하는, 타이포그래피용 기본 Text 컴포넌트예요.

  • Keywords: text, typography, font, primitive, compiled
  • Categories: primitive
  • Status: general-availability

예시

import { MetricText } from '@atlaskit/primitives/compiled/metric-text';
const _default_1: React.JSX.Element[] = [
	<MetricText size="small">42</MetricText>,
	<MetricText size="large">1,234</MetricText>,
];
export default _default_1;

Props

Prop Type Description
align "center" | "end" | "start" Text alignment
as "div" | "span" HTML tag to be rendered
children string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal Elements rendered within the Text element (required)
id string The [HTML id attribute](https://developer
role string Accessible role
size "small" | "medium" | "large" Text size (required)

사용 지침

  • 일관된 타이포그래피를 갖는 텍스트 콘텐츠에 사용해요.
  • 성능을 위해 컴파일 스타일링을 활용해요.
  • 적절한 글꼴 크기와 굵기 props를 사용해요.
  • 시맨틱 HTML 요소를 고려해요.

콘텐츠 지침

  • 적절한 텍스트 콘텐츠에 사용해요.
  • 일관된 타이포그래피 패턴을 유지해요.
  • 가독성과 계층을 고려해요.

Pressable 컴포넌트

컴파일 스타일링을 지원하며, 터치와 클릭 상호작용을 처리하는 기본 Pressable 컴포넌트예요.

  • Keywords: pressable, interaction, touch, click, primitive, compiled
  • Categories: primitive
  • Status: general-availability

예시

import { Pressable } from '@atlaskit/primitives/compiled/pressable';
const _default_1: React.JSX.Element[] = [
	<Pressable onClick={() => alert('Pressed!')}>Custom button</Pressable>,
];
export default _default_1;

Props

Prop Type Description
isDisabled boolean Whether the button is disabled
onClick (e: MouseEvent<HTMLButtonElement, globalThis.MouseEvent>, analyticsEvent: UIAnalyticsEvent) => void Handler called on click
xcss false | (XCSSValue<"appearance" | "grid" | "clipPath" | "filter" | "marker" | "mask" | "borderColor" | "translate" | "content" | "color" | "top" | "bottom" | "right" | "left" | "backgroundColor" | ... 486 more ... | "glyphOrientationVertical", DesignTokenStyles, ""> & ... 4 more ... & { ...; }) Apply a subset of permitted styles powered by Atlassian Design System design tokens

사용 지침

  • 눌림(press) 피드백이 필요한 상호작용 요소에 사용해요.
  • 성능을 위해 컴파일 스타일링을 활용해요.
  • 적절한 press 상태와 피드백을 사용해요.
  • 터치 대상 접근성을 고려해요.

콘텐츠 지침

  • 적절한 상호작용 콘텐츠에 사용해요.
  • 일관된 press 패턴을 유지해요.
  • 사용자 상호작용 기대치를 고려해요.

접근성 지침

  • press 상태에 대한 명확한 시각적 피드백을 제공해요.
  • 적절한 터치 대상 크기를 보장해요.
  • 상호작용 요소에 적절한 ARIA 속성을 사용해요.
  • 키보드 탐색을 지원해요.

Stack 컴포넌트

일관된 간격을 제공하는, 세로 및 가로 레이아웃용 기본 Stack 컴포넌트예요.

  • Keywords: stack, layout, vertical, horizontal, spacing, primitive, compiled
  • Categories: primitive
  • Status: general-availability

예시

import Heading from '@atlaskit/heading/heading';
import { Stack } from '@atlaskit/primitives/compiled/stack';
import { Text } from '@atlaskit/primitives/compiled/text';
const _default_1: React.JSX.Element[] = [
	<Stack space="space.100">
		<Heading size="medium">User name</Heading>
		<Text>Description</Text>
	</Stack>,
];
export default _default_1;

Props

Prop Type Description
alignBlock "center" | "end" | "start" | "stretch" Used to align children along the block axis (typically vertical)
alignInline "center" | "end" | "start" | "stretch" Used to align children along the inline axis (typically horizontal)
as "div" | "dl" | "ol" | "span" | "ul" The DOM element to render as the Stack
children string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal Elements to be rendered inside the Stack (required)
grow "fill" | "hug" Used to set whether the container should grow to fill the available space
role string Accessible role
space "space.025" | "space.050" | "space.100" | "space.150" | "space.200" | "space.0" | "space.075" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" Represents the space between each child
spread string Used to distribute the children along the main axis
xcss false | (XCSSValue<"appearance" | "grid" | "clipPath" | "filter" | "marker" | "mask" | "borderColor" | "translate" | "content" | "color" | "top" | "bottom" | "right" | "left" | "backgroundColor" | ... 486 more ... | "glyphOrientationVertical", DesignTokenStyles, ""> & ... 4 more ... & { ...; }) Apply a subset of permitted styles powered by Atlassian Design System design tokens

사용 지침

  • 일관된 세로 또는 가로 레이아웃에 사용해요.
  • 성능을 위해 컴파일 스타일링을 활용해요.
  • 적절한 간격과 정렬 props를 사용해요.
  • 반응형 동작을 고려해요.

콘텐츠 지침

  • 적절한 레이아웃 그룹핑에 사용해요.
  • 일관된 간격 패턴을 유지해요.
  • 콘텐츠 계층과 흐름을 고려해요.

Text 컴포넌트

컴파일 스타일링을 지원하는, 타이포그래피용 기본 Text 컴포넌트예요.

  • Keywords: text, typography, font, primitive, compiled
  • Categories: primitive
  • Status: general-availability

예시

import { Text } from '@atlaskit/primitives/compiled/text';
const _default_1: React.JSX.Element[] = [
	<Text>Default text</Text>,
	<Text size="large" weight="bold">
		Large bold text
	</Text>,
];
export default _default_1;

Props

Prop Type Description
align "center" | "end" | "start" Text alignment
as "em" | "p" | "span" | "strong" HTML tag to be rendered
children string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal Elements rendered within the Text element (required)
color "inherit" | TextColor Token representing text color with a built-in fallback value
id string The [HTML id attribute](https://developer
maxLines number The number of lines to limit the provided text to
role string Accessible role
size "small" | "medium" | "large" Text size
weight "medium" | "bold" | "regular" | "semibold" The [HTML font-weight attribute](https://developer
xcss false | (XCSSValue<"fontVariantNumeric" | "overflowWrap" | "textDecorationLine", DesignTokenStyles, ""> & {} & XCSSPseudo<"fontVariantNumeric" | "overflowWrap" | "textDecorationLine", never, never, DesignTokenStyles> & XCSSMediaQuery<...> & { ...; } & { ...; }) Bounded style overrides

사용 지침

  • 일관된 타이포그래피를 갖는 텍스트 콘텐츠에 사용해요.
  • 성능을 위해 컴파일 스타일링을 활용해요.
  • 적절한 글꼴 크기와 굵기 props를 사용해요.
  • 시맨틱 HTML 요소를 고려해요.

콘텐츠 지침

  • 적절한 텍스트 콘텐츠에 사용해요.
  • 일관된 타이포그래피 패턴을 유지해요.
  • 가독성과 계층을 고려해요.

더 알아보기 (Learn more)