컴포넌트 공방: 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
rx.text.quote공식 문서
공방 주문서
회사 소개 문단 속에, 고객이 한 말 두 마디를 문장을 끊지 않고 인용으로 넣어 주세요.
rx.text.quote는 문장 안에 들어가는 짧은 인용입니다. HTML <q> 태그가 되어 기울어진 세리프 글꼴(Radix 테마의 인용 글꼴)로 구분되고, 브라우저와 화면 읽기 프로그램도 그 부분이 인용임을 압니다. 문장을 끊고 따로 떼어 인용하려면 rx.blockquote를 씁니다.
His famous quote, Styles come and go. Good design is a language, not a style
, elegantly sums up Massimo's philosophy of design.
rx.text(
"His famous quote, ",
rx.text.quote("Styles come and go. Good design is a language, not a style"),
", elegantly sums up Massimo's philosophy of design.",
)Quote에는 크기나 색 같은 모양 속성이 없습니다. 둘러싼 rx.text의 크기와 색을 그대로 따르므로, 모양은 바깥 글자에서 정합니다. 그래서 이 페이지에는 속성 실습대 대신 State로 움직이는 예제가 있습니다.
| 속성 | 값 | 기본값 | 쓰임 |
|---|---|---|---|
| 자식 | 문자열, State 값 | 필수 | 인용할 말 |
cite | 주소 문자열 | 없음 | 인용한 출처의 주소(화면에는 보이지 않음) |
이 밖에 id, title, lang 같은 HTML 공통 속성과 기본 이벤트를 받습니다.
cite에 출처 주소를 적으면 HTML 속성으로 남습니다. 화면에는 보이지 않으므로, 사람에게 보여 줄 출처는 문장에 직접 씁니다.
The guide says Simple is better than complex
, and we agree.
rx.text(
"The guide says ",
rx.text.quote("Simple is better than complex", cite="https://peps.python.org/pep-0020/"),
", and we agree.",
size="4",
)같은 Quote라도 작은 회색 문장 안에서는 작고 회색으로, 큰 굵은 문장이나 제목 안에서는 크고 굵게 보입니다.
Small: Less is more
Large: Less is more
Less is more
rx.flex(
rx.text("Small: ", rx.text.quote("Less is more"), size="2", color_scheme="gray"),
rx.text("Large: ", rx.text.quote("Less is more"), size="6", weight="bold"),
rx.heading("In a heading: ", rx.text.quote("Less is more"), as_="h3", size="5"),
direction="column",
spacing="3",
)자식에 State 값을 넣으면 값이 바뀔 때 인용도 바뀝니다. 아래 버튼은 인용 목록의 번호만 바꿉니다.
As The Zen of Python puts it, Simple is better than complex
.
class QuoteSayingState(rx.State):
sayings: list[dict[str, str]] = [
{"text": "Simple is better than complex", "who": "The Zen of Python"},
{"text": "Readability counts", "who": "The Zen of Python"},
{"text": "Now is better than never", "who": "The Zen of Python"},
]
pick: int = 0
@rx.event
def next_saying(self):
self.pick = (self.pick + 1) % len(self.sayings)
rx.flex(
rx.text(
"As ",
QuoteSayingState.sayings[QuoteSayingState.pick]["who"],
" puts it, ",
rx.text.quote(QuoteSayingState.sayings[QuoteSayingState.pick]["text"]),
".",
size="4",
),
rx.button("Another one", on_click=QuoteSayingState.next_saying, size="1", variant="soft"),
direction="column",
align="start",
spacing="3",
)소개 문단은 하나의 rx.text로 두고, 고객의 말 두 마디만 rx.text.quote로 감쌉니다. 문장이 끊기지 않고 자연스럽게 이어집니다.
Our support lead calls this the ten-minute rule
: every message gets a first reply within ten minutes. Customers say it feels like talking to a friend
.
rx.card(
rx.text(
"Our support lead calls this the ",
rx.text.quote("ten-minute rule"),
": every message gets a first reply within ten minutes. Customers say it feels ",
rx.text.quote("like talking to a friend"),
".",
size="3",
),
max_width="440px",
)공방 노트
rx.text.quote("…")는 문장 속 짧은 인용(<q>). rx.text 안에 자식으로 넣는다.
모양 속성이 없고, 둘러싼 글자의 크기·색을 따른다.
cite는 출처 주소를 HTML에만 남긴다.
따로 떼어 보여 줄 긴 인용은 rx.blockquote.
새 교시·새 강의 소식 받기
이 강의에 새 교시가 더해지거나 이어지는 강의가 열리면 이메일로 알려 드려요.
R
ReflexKR
눌러 보며 배우는 파이썬과 Reflex. 모든 예제는 Reflex 0.10.0에서 직접 실행해 확인했습니다.
ReflexKR은 배너 광고 없이 무료로 운영돼요. 도움이 되셨다면 커피 한 잔으로 응원해 주세요.
© 2026 ReflexKR · Since 2026 · CC BY-NC 4.0
질문과 답변
이 교시에서 궁금한 점을 남겨 주세요. 모든 언어 페이지의 질문이 함께 모입니다.