Skip to content

Apply generics to the value prop of the Tabs component #1316

Open
@sungik-choi

Description

Description

Tabs 컴포넌트의 defaultValue, value, onValueChange 속성에 제네릭 타입을 적용합니다.

Reasons for suggestion

string enum을 사용하는 케이스의 경우, 타입을 더 좁혀 사용처에서 실수를 방지할 수 있습니다.

Proposed solution

  • Description과 동일
  • TabAction, TabContent 에는 적용해도 큰 의미 없을 듯
  • RadioGroup, Checkbox 등 제네릭이 적용된 컴포넌트를 참고하여 구현

References

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementIssues or PR related to making existing features better

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions