Skip to content

bug: RtkClock does not accept size prop #48

@jesusalber1

Description

@jesusalber1

Hello,

I get a type error when I use the size attribute with the RtkClock component: ‎<RtkClock size="sm" />. The style is properly applied, so it seems it's just a type issue.

Here is the detailed error message:

Type error: Type '{ size: string; }' is not assignable to type 'IntrinsicAttributes & RtkClock & Omit<HTMLAttributes<HTMLRtkClockElement>, "style"> & StyleReactProps & RefAttributes<...>'.

  Property 'size' does not exist on type 'IntrinsicAttributes & RtkClock & Omit<HTMLAttributes<HTMLRtkClockElement>, "style"> & StyleReactProps & RefAttributes<...>'.
  64 |       <header className='flex items-center justify-end gap-2'>
  65 |         <RtkParticipantCount size='sm' />
> 66 |         <RtkClock size='sm' />
     |                   ^
  67 |       </header>

I'll have a PR ready with a fix shortly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions