๋ฌธ์ ์์ธ
๋ค์ดํฐ๋ธ ๋งํฌ์ ์ ํ์ ๋ณด๊ธฐ ์ปจํธ๋กค๋ก ๋ฌธ์๋ฅผ ๊ทธ๋ฃน๋ณ๋ก ์๋ดํฉ๋๋ค.
๊ทธ๋ฃน๋ณ ํญ๋ชฉ
Learn 2
Start with one complete example, then build on it.
Utilities 4
Look up a specific layout behavior.
Foundations 2
Share values across the interface.
๊ฐ์ด๋์์
Learn 2
Start with one complete example, then build on it.
Utilities 4
Look up a specific layout behavior.
Foundations 2
Share values across the interface.
์ฌ์ฉ ์์น: the Guide index.
์ฌ์ฉ๋ฒ๊ณผ ์ธํฐํ์ด์ค
DocumentationIndex๋ ํฐ ์นดํ๋ก๊ทธ๋ฅผ ์น์
, ๋ฒ์ฃผ, ๋ฌธ์๋ณ๋ก ์ ๋ฆฌํ๋ฉฐ Guide์ Reference์ ์
๊ตฌ๋ฅผ ๊ตฌ์ฑํฉ๋๋ค. ํ์ต ๊ฒฝ๋ก์๋ ์ถฉ๋ถํ ์ค๋ช
์, ์ด๋ฆ์ผ๋ก ์ฐพ๋ API๋ ์ ํธ๋ฆฌํฐ์๋ ๊ฐ๊ฒฐํ ๋งํฌ ๋ชฉ๋ก์ ์ฌ์ฉํ์ธ์. ๋ ๋ณด๊ธฐ์๋ ๊ฐ์ ๋ชฉ์ ์ง๊ฐ ํฌํจ๋ฉ๋๋ค.
๊ฐ ์น์
์ ์์ ์ ์ธ id, ์ ๋ชฉ, ์ค๋ช
, groups๋ฅผ ์ ๊ณตํ์ธ์. ์น์
์ ์์๋๋ก ๋ฒํธ๊ฐ ๋งค๊ฒจ์ง๋๋ค. ์ฌ๋ฌ ๋ฒ์ฃผ๊ฐ ์๋ ๊ทธ๋ฃน์๋ ์น์
๋จธ๋ฆฌ๊ธ ์์ ๋ค์ดํฐ๋ธ ์ต์ปค ๋ฐ๋ก๊ฐ๊ธฐ๊ฐ ์ ๊ณต๋ฉ๋๋ค. ์์๊ฐ ๋ฐ๋์ด๋ ๊ณต์ URL์ ์ ์งํ๋๋ก ๊ฐ ๊ทธ๋ฃน์๋ ๊ณ ์ ํ๊ณ ์์ ์ ์ธ id๋ฅผ ์ง์ ํ์ธ์. showDescriptions๋ ์ค๋ฐ๊ฟ๋๋ ์ ์ฒด ์์ฝ์ ํ์ํฉ๋๋ค. ๊ธฐ๋ณธ๊ฐ์ ๊ฐ๊ฒฐํ ๋งํฌ์ด๋ฉฐ related๋ ๋ค๋ฅธ ์นดํ๋ก๊ทธ๋ก ์ฐ๊ฒฐํฉ๋๋ค.
<DocumentationIndex name="guide" sections={[{ id: 'learn', title: 'Learn', description: 'Start with a working example.', groups: [{ entries: [{ id: 'intro', title: 'Introduction', category: 'Guide', description: 'Write your first classes.', url: 'https://rc.css.master.co/guide/introduction', }] }], }]} showDescriptions related={{ href: 'https://rc.css.master.co/reference', title: 'Reference', description: 'Look up a utility.' }}/>์นดํ๋ก๊ทธ๋ ์นด๋ ๊ฒฉ์๋ณด๋ค ์ฑ
์ ๋ชฉ์ฐจ์ฒ๋ผ ์ฝํ๋๋ค. ๊ฐ๋ ์ ์์ ๋ฒํธ ์๋ ์น์
๋ชฉ๋ก์ ์ํธ ๋งํฌ๋ก ๋ง๋ฌด๋ฆฌํ๊ณ ๊ฐ ์น์
์ ์ ์ผ๋ก ๊ตฌ๋ถํ ํผ์นจ๋ฉด์ฒ๋ผ ๋ฐฐ์นํฉ๋๋ค. 44rem๋ถํฐ๋ ๋ฒํธ, ์ด๋ฆ, ์์ฝ์ด ํญ๋ชฉ ์์ ์ ์ง๋ฉ๋๋ค. ์ค๋ช
์ด ์๋ ํญ๋ชฉ์ ์ ์ผ๋ก ๊ตฌ๋ถ๋ ํ๊ณผ ํฌ์ธํฐ ์๋ ํ์ดํ๋ฅผ ์ฌ์ฉํ๊ณ , ๊ฐ๊ฒฐํ ๋งํฌ๋ ์ด๋ก, AโZ ๋ณด๊ธฐ๋ ์ฑ
์ ์์ธ์ฒ๋ผ ๋ฌธ์๋ณ ์ด๋ก ๋ฐฐ์นํฉ๋๋ค. ๋ณ๋ ํ๋ ์์ ์์ผ๋ฉฐ ํด๋์ ํ์ ํฐ์น ํ์ 44px์ ์ ์งํฉ๋๋ค. ์์ฒด ์ปจํ
์ด๋์ ์ด ๋ ์ด์์์ ๊ฐ์ง๋ฏ๋ก ์ธก์ ๋ฐ๋ชจ ๋ฐ์ ์ฝ๊ธฐ ์ด์ ๋ฐฐ์นํ์ธ์. ๋ฒ์ฃผ์ AโZ ์ปจํธ๋กค์ ๋๋ฆผ ์ํ๊ฐ ์๋ ๋ค์ดํฐ๋ธ ๋ฒํผ์
๋๋ค. ๋ฌธ์์ ๋ฒ์ฃผ ๋ฐ๋ก๊ฐ๊ธฐ๋ ์ง์ ์ง์
URL๋ก๋ ์ธ ์ ์๋ ์ค์ ํ๋๊ทธ๋จผํธ ๋งํฌ์
๋๋ค. ๊ณต๊ฐ ์นดํ๋ก๊ทธ๋ ๊ธฐ์กด ์ต์ปค๋ฅผ ์ ์งํ๋๋ก idPrefix๋ฅผ ์๋ตํ๊ณ , ํ ๊ฒํ ํ์ด์ง์ ์ฌ๋ฌ ์นดํ๋ก๊ทธ๋ฅผ ํ์ํ ๋๋ง ์๋ก ๋ค๋ฅธ ์ ๋์ฌ๋ฅผ ์ง์ ํฉ๋๋ค. ์ ์ฒด ๋ฒ์ฃผ ๋ณด๊ธฐ๋ ์๋ฒ ๋ ๋๋ง HTML์ ํฌํจ๋๋ฉฐ AโZ ์ ํ์๋ JavaScript๊ฐ ํ์ํฉ๋๋ค. ์์ธ ๊ฒํ ํ์ด์ง์์ ํ์ฌ ์นดํ๋ก๊ทธ๋ฅผ ํ์ธํ์ธ์.