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

@jk-core/components

v0.1.8

Published

components for jk

Downloads

1,637

Readme

@jk-core/components

jk-core 프로젝트를 위한 React 커스텀 컴포넌트 모음입니다.

설치

npm install @jk-core/components
yarn add @jk-core/components

Calendar

Calendar 컴포넌트는 날짜 선택 기능을 제공하는 사용자 정의 React 컴포넌트입니다. 일, 월, 년 단위로 날짜를 선택할 수 있으며, 다양한 커스터마이징 옵션을 제공합니다.

특징

  • 일/월/년 단위의 날짜 선택
  • 커스텀 스타일링 지원
  • 최소/최대 날짜 설정 기능
  • 타일 내용 커스터마이징 가능
  • 반응형 디자인

사용법

import { Calendar, CalendarView } from '@jk-core/components';
import { useState } from 'react';
function App() {
const [view, setView] = useState<CalendarView>('month');
const [date, setDate] = useState<Date>(new Date());
return (
<Calendar
date={date}
view={view}
setView={setView}
onChange={setDate}
/>
);
}

Props

| Prop | 타입 | 기본값 | 설명 | |------|------|--------|------| | className | string | '' | 추가적인 CSS 클래스 | | date | Date | undefined | 선택된 날짜 | | view | CalendarView | 'day' | 현재 보기 모드 ('day', 'month', 'year') | | setView | (view: CalendarView) => void | () => {} | 보기 모드 변경 함수 | | tileContent | (date: Date | undefined, view: CalendarView) => React.ReactNode | undefined | 타일 내용 커스터마이징 함수 | | onChange | (date: Date) => void | () => {} | 날짜 선택 시 호출되는 함수 | | min | Date | new Date(2000, 0, 1) | 선택 가능한 최소 날짜 | | max | Date | new Date(2099, 11, 31) | 선택 가능한 최대 날짜 | | onClose | () => void | undefined | 닫기 버튼 클릭 시 호출되는 함수 | | viewSelector | boolean | true | 보기 모드 선택기 표시 여부 |

스타일링

Calendar 컴포넌트는 CSS 모듈을 사용하여 스타일링되어 있습니다. 커스텀 스타일을 적용하려면 className prop을 사용하거나 컴포넌트의 CSS 모듈 파일을 직접 수정하세요.