Skip to content

OrigamPickerTitle ​

<OrigamPickerTitle> is the small uppercase header rendered at the top of every <OrigamPicker>. It accepts a title prop or arbitrary content via the default slot.

The component is intentionally minimal — its job is consistent typographic styling (size, weight, tracking, padding) shared by every picker variant.

Basic usage ​

vue
<template>
    <OrigamPickerTitle title="Select date"/>
</template>

Default slot override ​

vue
<template>
    <OrigamPickerTitle>
        Custom <em>rich</em> content
    </OrigamPickerTitle>
</template>

Polymorphic tag ​

The default tag is a <div>. Promote it to a heading when the picker sits in a region that would benefit from semantic structure.

vue
<template>
    <OrigamPickerTitle tag="h2" title="Pick a colour"/>
</template>

Slots ​

SlotSlot propsDescription
default—Replaces the rendered title prop.

Props ​

PropTypeDefaultNotes
titlestringundefinedText rendered inside the title. Override via the default slot for rich content.
colorTColorundefinedText colour. Intent value or custom CSS colour.
bgColorTColorundefinedBackground colour of the title bar.
tagstring'div'Polymorphic tag. Use 'h2'/'h3' for semantic heading structure.
fontSize'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl'undefinedOverrides --origam-picker-title---font-size with the matching primitive token. Default is 0.75rem.
fontWeight'regular' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black'undefinedOverrides --origam-picker-title---font-weight with the matching primitive token. Default is 400.
letterSpacing'tight' | 'normal' | 'wide' | 'wider' | 'widest'undefinedOverrides --origam-picker-title---letter-spacing with the matching primitive token. Default is 0.1666666667em.

Anatomy ​

html
<div class="origam-picker-title">
    <!-- title prop or default slot -->
</div>

Design tokens consumed ​

The picker title reuses tokens declared on the picker family. All values fall back to sensible defaults so the component renders even before the project ships custom tokens.

CSS variableDefaultNotes
--origam-picker-title---text-transformuppercase
--origam-picker-title---font-size0.75rem
--origam-picker-title---font-weight400
--origam-picker-title---letter-spacing0.1666666667em
--origam-picker-title---padding-inline24px 12px
--origam-picker-title---padding-block16px
--origam-picker-title---colorinheritFalls back to the parent picker --origam-picker--title---color.

Accessibility ​

  • Choose a meaningful tag (h2, h3, …) when the picker sits in a context that benefits from heading structure (e.g. inside a dialog with multiple sections).
  • The default <div> is fine for most popovers where the picker is the only content.
  • OrigamPicker — the picker shell that hosts the title.