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

@jdesignlab/tabs

v0.11.0

Published

사용자가 여러개의 탭 중 하나를 선택할 수 있는 UI 요소입니다. 각 탭은 관련된 컨텐츠를 표시하고, 사용자는 탭을 선택하여 해당 컨텐츠를 전환할 수 있습니다.

Downloads

36

Readme

Tabs

사용자가 여러개의 탭 중 하나를 선택할 수 있는 UI 요소입니다. 각 탭은 관련된 컨텐츠를 표시하고, 사용자는 탭을 선택하여 해당 컨텐츠를 전환할 수 있습니다.

Usage

Storybook

<Tabs>
  <Tabs.List>
    <Tabs.Trigger value="tab1" />
    <Tabs.Trigger value="tab2" />
  </Tabs.List>
  <Tabs.Content value="tab1" />
  <Tabs.Content value="tab2" />
</Tabs>

Props

Tabs

| Property | Allow Types | Description | Default | | ------------ | ---------------------- | -------------------------------------------------------------- | -------------- | | variant | enclosed underline | 컴포넌트의 스타일을 변형합니다. | underline | | defaultValue | string | 탭의 value로 초기 렌더링 시 선택될 탭을 지정합니다. | undefined | | onChange | () => void | 탭이 변경될 때 발생하는 이벤트를 지정합니다. | undefined | | size | sm md lg | 컴포넌트의 크기를 조정합니다. | md | | lazy | boolean | 탭의 내용을 지연 로딩하여 필요한 때만 렌더링하도록 지정합니다. | false | | full | boolean | 컴포넌트가 부모 컨테이너의 전체너비를 차지하도록 지정합니다. | false | | accentColor | ColorToken | 탭의 강조 색상을 지정합니다. | grey-darken4 | | baseColor | ColorToken | 탭의 기본 색상을 지정합니다. | grey-base |

Tabs.List

| Property | Allow Types | Description | Default | | -------- | ----------------- | ------------------------------------------ | ------- | | children | React.ReactNode | Tabs.Trigger를 감싸고 있는 부모요소입니다. | |

Tabs.Trigger

| Property | Allow Types | Description | Default | | -------- | ----------------- | ------------------------------------------------------------------ | -------- | | children | React.ReactNode | Tab의 컨텐츠를 변경하기 위한 트리거 요소입니다. | | | value | string | 각 트리거의 값을 지정해 화면에 보여줄 Tabs.Content와 연결합니다. | bottom | | disabled | boolean | 탭을 비활성화합니다. | false |

Tabs.Content

| Property | Allow Types | Description | Default | | -------- | ----------- | ---------------------------------------------------------------------------- | -------- | | value | string | 값을 지정해 동일한 값을 가진 Tabs.Trigger가 선택될 경우 화면에 보여줍니다. | bottom |