Installation
Complete project setup first. Your configuration
must select vue/reka and include your Design System ID.
pnpm exec frontfriend download time-picker -f vue --primitive rekaReview dependencies reported by the downloader and keep your source changes in version control.
Usage
<script setup lang="ts">
import { TimePicker } from "@/components/ui/time-picker";
const args = {
"minuteInterval": 15,
"secondInterval": 1,
"manualInput": false,
"disabled": false,
"format": "hh:mm",
} satisfies Record<string, unknown> & {
format?:
| "hh:mm:ss A"
| "h:m:s a"
| "kk:m:s"
| "k:m:s"
| "hh:mm"
| "h:m a"
| "kk:m"
| "k:m";
};
</script>
<template>
<div class="h-[300px] w-[200px]">
<TimePicker v-bind="args" />
</div>
</template> Behavior
- Guard browser-only APIs for SSR.
- Use accessible disabled option semantics.
Examples
Main
<script setup lang="ts">
import { TimePicker } from "@/components/ui/time-picker";
const args = {
"minuteInterval": 15,
"secondInterval": 1,
"manualInput": false,
};
</script>
<template>
<div class="h-[300px] w-[200px]">
<TimePicker v-bind="args" />
</div>
</template> With Seconds And Custom Format
<script setup lang="ts">
import { TimePicker } from "@/components/ui/time-picker";
const args = {
"minuteInterval": 15,
"secondInterval": 10,
"manualInput": false,
"format": "hh:mm:ss A",
} satisfies Record<string, unknown> & {
format?:
| "hh:mm:ss A"
| "h:m:s a"
| "kk:m:s"
| "k:m:s"
| "hh:mm"
| "h:m a"
| "kk:m"
| "k:m";
};
</script>
<template>
<div class="h-[300px] w-[200px]">
<TimePicker v-bind="args" />
</div>
</template> API reference
Frontfriend-owned props. Native HTML and inherited primitive props remain documented by Reka UI.
This component adds no props of its own to Reka UI.
Configuration determines the actual classes and available styling hooks. See Theming & component configuration before introducing a repeated local override.