Skip to content

i18n(zh-tw): update basics/astro-components.mdx #11913

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/content/docs/zh-tw/basics/astro-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ import Wrapper from '../components/Wrapper.astro';

一整頁 HTML 內容被 `<SomeLayoutComponent></SomeLayoutComponent>` 標籤「包起來」,接著傳給其他元件算繪頁面所有元素——這個模式便是 [Astro 版面元件](/zh-tw/basics/layouts/)的基礎。

<ReadMore>請參閱 [`Astro.slots` 工具函式](/zh-tw/reference/astro-syntax/#astroslots)以了解更多存取與算繪插槽內容的方式。</ReadMore>

### 具名插槽

Astro 元件可以放置具名插槽,讓你只傳入名字相符的 HTML 元素到指定插槽。
Expand Down