mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-09 03:17:52 +00:00
- Login page with dynamic OAuth provider buttons from /api/v1/auth/providers - Dashboard with AuthGuard, user info display, and token management - TokenList component with create/delete operations via TanStack Query - CreateTokenDialog with one-time token display and copy functionality - API client with typed auth and token endpoints - shadcn/ui components: Button, Card, Dialog, Table, Input, Label - Tailwind CSS with CSS variables theming - TanStack Router with Home, Login, Dashboard routes - ESLint + TypeScript strict mode configuration
20 lines
509 B
TypeScript
20 lines
509 B
TypeScript
import * as React from 'react'
|
|
import { cn } from '@/shared/lib/utils'
|
|
|
|
export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {}
|
|
|
|
const Label = React.forwardRef<HTMLLabelElement, LabelProps>(
|
|
({ className, ...props }, ref) => (
|
|
<label
|
|
ref={ref}
|
|
className={cn(
|
|
'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
)
|
|
)
|
|
Label.displayName = 'Label'
|
|
|
|
export { Label }
|