Introduction
라이브러리 개요
기능 소개
설치
npm install @shinyongjun/react-fullpageyarn add @shinyongjun/react-fullpage예제 코드
'use client';
import { useState } from 'react';
import { FullpageContainer, FullpageSection } from '@shinyongjun/react-fullpage';
import '@shinyongjun/react-fullpage/css';
function MyPage() {
const [activeIndex, setActiveIndex] = useState<number>(0);
return (
<FullpageContainer
activeIndex={activeIndex}
setActiveIndex={setActiveIndex}
>
<FullpageSection>
<div>Section 1</div>
</FullpageSection>
<FullpageSection>
<div>Section 2</div>
</FullpageSection>
<FullpageSection>
<div>Section 3</div>
</FullpageSection>
<FullpageSection isAutoHeight>
<footer>Footer</footer>
</FullpageSection>
</FullpageContainer>
);
}
export default MyPage;API 문서
실제 사용 사례
피드백 및 지원
Last updated