npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

woody-tab-layout-component

v1.0.5

Published

A simple TabLayout Component

Downloads

2

Readme

Woody's TabLayout Component

storybook

github

npm

설치

npm install tab-layout-component

공식문서에 따라 Tailwind를 설치합니다 - Tailwind 공식문서

사용법

패키지에서 TabLayout 컴포넌트를 가져와서 컴포넌트에서 사용하세요

import { TabLayout } from 'tab-layout-component';

const MyApp = () => {
  return (
    <TabLayout tabs={['탭 1', '탭 2', '탭 3']} tabPosition='left' activeButtonColor='#0067A3'>
      <div>콘텐츠1</div>
      <div>콘텐츠2</div>
      <div>콘텐츠3</div>
    </TabLayout>
  );
};

export default MyApp;

API

TabLayoutProps

  • tabs (Tabs): 각 탭은 문자열 또는 숫자로 표시되는 탭 배열입니다.

    • Tabs 타입은 (number | string)[]으로 정의되어 있어 문자열 또는 숫자 또는 둘 다의 배열을 의미합니다.
  • className (string, optional): 추가할 미리 정의된 CSS 클래스 이름입니다.

  • tabPosition (TabPosition, optional): 탭의 위치입니다. 기본값은 'top'입니다.

    • TabPosition 타입은 다음 값 중 하나일 수 있습니다: 'top', 'bottom', 'left', 'right'.
  • activeColor (string, optional): 활성 탭 버튼의 색상입니다.

<TabLayout
  tabs={['탭 1', '탭 2', '탭 3']}
  className='border-2 border-gray-300'
  tabPosition='left'
  activeColor='#0067A3'
>
  <div>콘텐츠1</div>
  <div>콘텐츠2</div>
  <div>콘텐츠3</div>
</TabLayout>

기여

TabLayout 컴포넌트를 개선하기 위해 문제를 제기하거나 풀 리퀘스트를 열어 주시기 바랍니다. 모든 기여를 환영합니다!