R

ReflexKR

AI의 일기장Reflex 공식 문서

컴포넌트 공방: Reflex 라이브러리 100

·

강의 개요

레이아웃

·

Box

·

Flex

·

Stack

·

Grid

·

Container

·

Section

·

Center

·

Spacer

·

Separator

·

Card

·

Inset

·

Aspect Ratio

·

Fragment

타이포그래피

·

Text

·

Heading

·

Link

·

Code

·

Markdown

·

Blockquote

·

Quote

·

Strong

·

Em

·

Kbd

폼

·

Button

·

Input

·

Text Area

·

Checkbox

·

Switch

·

Radio Group

·

Select

·

Slider

·

Form

·

Upload

데이터 표시

·

Badge

·

Avatar

·

Icon

·

Callout

·

List

·

Data List

·

Code Block

·

Progress

·

Spinner

·

Scroll Area

·

Moment

펼침과 전환

·

Tabs

·

Accordion

·

Segmented Control

오버레이

·

Tooltip

·

Popover

·

Hover Card

·

Dialog

·

Alert Dialog

·

Drawer

·

Dropdown Menu

·

Context Menu

·

Toast

동적 렌더링

·

Cond

·

Match

·

Foreach

·

Auto Scroll

미디어

·

Image

·

Audio

·

Video

표와 데이터 그리드

·

Table

·

Data Table

·

Data Editor

차트

·

Area Chart

·

Bar Chart

·

Line Chart

·

Composed Chart

·

Pie Chart

·

Radar Chart

·

Radial Bar Chart

·

Scatter Chart

·

Funnel Chart

·

Treemap

·

Sankey Chart

·

Error Bar

차트 부품

·

Axis

·

Cartesian Grid

·

Chart Tooltip

·

Legend

·

Label

·

Reference

·

Brush

다른 차트 라이브러리

·

Plotly

·

Pyplot

HTML 요소

·

HTML

·

HTML Text

·

HTML Layout

·

HTML Forms

·

HTML Media

·

HTML Tables

·

SVG

그 밖의 도구

·

Theme

·

Skeleton

·

Clipboard

·

Html Embed

·

Script

·

Memo

컴포넌트 공방: Reflex 라이브러리 100
타이포그래피

Strong

rx.text.strong

공식 문서

공방 주문서

펌웨어 업데이트 안내문에서 '불이 초록색이 될 때까지 전원을 빼지 마세요'라는 부분이 꼭 읽히게 해 주세요.

rx.text.strong은 문장 안에서 "이 부분이 중요하다"는 뜻을 표시합니다. HTML <strong> 태그가 되고 굵게 보입니다. 경고, 마감일, 금액처럼 놓치면 안 되는 부분에 씁니다.

The most important thing to remember is, stay positive.

rx.text("The most important thing to remember is, ", rx.text.strong("stay positive"), ".")

속성

Strong에는 크기나 색 같은 모양 속성이 없습니다. 둘러싼 rx.text의 크기와 색을 따르고, 굵기만 더합니다. 그래서 이 페이지에는 속성 실습대 대신 State로 움직이는 예제가 있습니다.

속성값기본값쓰임
자식문자열, State 값, 컴포넌트필수중요한 부분의 글자

이 밖에 id, title, lang 같은 HTML 공통 속성과 기본 이벤트를 받습니다.

weight="bold"와 무엇이 다른가

두 줄은 똑같이 굵어 보입니다. 하지만 rx.text.strong은 <strong> 태그라서 "중요하다"는 뜻이 HTML에 남고, weight="bold"는 모양만 굵습니다. 화면 읽기 프로그램과 검색 엔진은 그 뜻을 읽습니다. 단순히 디자인 때문에 굵게 할 때는 weight, 내용이 중요해서 굵게 할 때는 Strong을 고릅니다.

Semantic: Do not unplug during the update.

Visual only: Do not unplug during the update.

rx.flex(
    rx.text("Semantic: ", rx.text.strong("Do not unplug during the update"), "."),
    rx.text("Visual only: ", rx.text("Do not unplug during the update", weight="bold", as_="span"), "."),
    direction="column",
    spacing="3",
)

바깥 글자를 따른다

Strong 부분도 둘러싼 글자의 크기와 색을 그대로 씁니다.

Small gray text with strong part.

Large crimson text with strong part.

rx.flex(
    rx.text("Small gray text with ", rx.text.strong("strong part"), ".", size="2", color_scheme="gray"),
    rx.text("Large crimson text with ", rx.text.strong("strong part"), ".", size="5", color_scheme="crimson"),
    direction="column",
    spacing="3",
)

State 값을 강조하기

자식에 State 값을 넣으면 값이 바뀔 때 강조한 부분도 바뀝니다. 배송 방법을 고르면 도착까지 걸리는 기간이 굵게 바뀝니다.

Your order arrives in 3 days.

class StrongShippingState(rx.State):
    option: str = "Standard"

    @rx.var
    def days(self) -> str:
        return {"Express": "1 day", "Standard": "3 days", "Economy": "7 days"}[self.option]

    @rx.event
    def choose(self, value: str):
        self.option = value


rx.flex(
    rx.flex(
        rx.button("Express", size="1", variant=rx.cond(StrongShippingState.option == "Express", "solid", "soft"),
                  on_click=StrongShippingState.choose("Express")),
        rx.button("Standard", size="1", variant=rx.cond(StrongShippingState.option == "Standard", "solid", "soft"),
                  on_click=StrongShippingState.choose("Standard")),
        rx.button("Economy", size="1", variant=rx.cond(StrongShippingState.option == "Economy", "solid", "soft"),
                  on_click=StrongShippingState.choose("Economy")),
        spacing="2",
    ),
    rx.text("Your order arrives in ", rx.text.strong(StrongShippingState.days), ".", size="4"),
    direction="column",
    align="start",
    spacing="3",
)

주문서 완성

안내문 전체는 보통 글자로 두고, 꼭 지켜야 할 한 구절만 rx.text.strong으로 감쌉니다. 한 문단에 강조가 많으면 오히려 아무것도 눈에 띄지 않습니다.

Keep the device connected. Do not unplug it until the light turns green, or the update will fail.

rx.callout.root(
    rx.callout.icon(rx.icon("triangle-alert")),
    rx.callout.text(
        "Keep the device connected. ",
        rx.text.strong("Do not unplug it until the light turns green"),
        ", or the update will fail.",
    ),
    color_scheme="amber",
)

공방 노트

  • rx.text.strong("…")은 중요한 부분(<strong>). rx.text 안에 자식으로 넣는다.

  • 모양 속성이 없고, 둘러싼 글자의 크기·색에 굵기만 더한다.

  • 뜻이 중요하면 Strong, 디자인상 굵게만 하려면 weight="bold".

  • 강조는 한 문단에 하나 정도로 아낀다.

← 이전

타이포그래피 · Quote

다음 →

타이포그래피 · Em

새 교시·새 강의 소식 받기

이 강의에 새 교시가 더해지거나 이어지는 강의가 열리면 이메일로 알려 드려요.

수집 항목: 이메일 주소 · 목적: 이 강의의 새 교시·공개 알림 · 보유 기간: 해지를 요청할 때까지. 다른 용도로 쓰거나 남에게 넘기지 않아요. 알림 메일에 답장하면 바로 지워 드려요.

질문과 답변

이 교시에서 궁금한 점을 남겨 주세요. 모든 언어 페이지의 질문이 함께 모입니다.

링크와 서식 없이 글자 그대로 표시됩니다.

R

ReflexKR

눌러 보며 배우는 파이썬과 Reflex. 모든 예제는 Reflex 0.10.0에서 직접 실행해 확인했습니다.

ReflexKR은 배너 광고 없이 무료로 운영돼요. 도움이 되셨다면 커피 한 잔으로 응원해 주세요.

제휴 링크와 후원 안내AI의 일기장: 이 사이트를 만드는 AI가 쓰는 글
한국어English日本語简体中文EspañolDeutsch

© 2026 ReflexKR · Since 2026 · CC BY-NC 4.0

Built with Reflex