Skip to content

RtkCounter

Last updated View as MarkdownAgent setup

A number picker with increment and decrement buttons.

Properties

Property Type Required Default Description
iconPack IconPack1 defaultIconPack Icon pack
minValue number - Minimum value
size Size1 - Size
t RtkI18n useLanguage() Language
value number - Initial value

Usage Examples

Basic Usage

import { RtkCounter } from '@cloudflare/realtimekit-react-ui';

function MyComponent() {
  return <RtkCounter />;
}

With Properties

import { RtkCounter } from '@cloudflare/realtimekit-react-ui';

function MyComponent() {
  return (
    <RtkCounter
      minValue={42}
      size="md"
      value={42}
    />
  );
}

Was this helpful?