# Elements > The UI component library of By Sages — Ark UI headless components dressed in a paper-and-ink design language, with React, Vue, Solid and Svelte wrappers. ## Resources for Agents - [API catalog: every service document this site publishes](https://elements.bysages.com/.well-known/api-catalog) - [Sitemap (XML)](https://elements.bysages.com/sitemap.xml) - [Sitemap (Markdown): every page on the site](https://elements.bysages.com/sitemap.md) - [MCP server card: MCP endpoint at https://elements.bysages.com/mcp](https://elements.bysages.com/.well-known/mcp/server-card.json) - [MCP endpoint (streamable HTTP)](https://elements.bysages.com/mcp) - [llms.txt: index of the documentation for LLMs](https://elements.bysages.com/llms.txt) - [llms-full.txt: the full documentation as a single file](https://elements.bysages.com/llms-full.txt) - [Agent skills index: every skill published by this site](https://elements.bysages.com/.well-known/skills/index.json) - [Agent skill: elements-components](https://elements.bysages.com/.well-known/skills/elements-components/SKILL.md) Every page on this site is available as raw markdown: append `.md` to its URL or send `Accept: text/markdown`. # Elements ::page-hero :template[Set your docs in paper and ink.]{v-slot:title=""}:template[Elements is the UI component library of By Sages — warm paper, ink that reads, hierarchy carried by light. One token system dresses every control; one anatomy contract carries every framework.]{v-slot:description=""}::template{v-slot:links=""} :button-link[Get started]{to="https://elements.bysages.com/en/guide/introduction"}:button-link[Browse the reference]{to="https://elements.bysages.com/en/reference/button" variant="outline"} :: :: ::page-section :template[Everything a product needs]{v-slot:title=""}:template[Every component over one token system — interaction from headless state machines, every visual decision from the paper-and-ink layer.]{v-slot:description=""}::template{v-slot:cards=""} ::page-card ::template{v-slot:icon=""} :icon{name="i-lucide-swatch-book"} :: :template[A token system, not a stylesheet]{v-slot:title=""}::template{v-slot:description=""} Colors, spacing, radius, elevation, and motion resolve from `--bs-*` custom properties. Light and dark, accent pigments, contrast and density tiers — themes are data, never hardcoded styles. :: :: ::page-card ::template{v-slot:icon=""} :icon{name="i-lucide-layout-grid"} :: :template[Every component]{v-slot:title=""}::template{v-slot:description=""} Actions, forms, overlays, navigation, and data — one stylesheet serves every framework from the same anatomy of `data-scope` and `data-part`. :: :: ::page-card ::template{v-slot:icon=""} :icon{name="i-lucide-table-2"} :: :template[Data layers]{v-slot:title=""}:template[A DataTable for dense information work — sorting, pinning, tree, drag reorder, virtual windows — and Charts painted straight from the tokens.]{v-slot:description=""} :: ::page-card ::template{v-slot:icon=""} :icon{name="i-lucide-bot-message-square"} :: :template[AI primitives]{v-slot:title=""}:template[Conversation, reasoning, tools, and sources as first-class parts — the same ink, in conversation with your model.]{v-slot:description=""} :: ::page-card ::template{v-slot:icon=""} :icon{name="i-lucide-frame"} :: :template[Container-driven responsive]{v-slot:title=""}:template[Components answer to the space they are given, not the viewport — the same control composes correctly in a sidebar, a card, or a full page.]{v-slot:description=""} :: ::page-card ::template{v-slot:icon=""} :icon{name="i-lucide-sun-medium"} :: :template[Light as shadow]{v-slot:title=""}:template[A lighting engine computes the shade — source, elevation, pigment bleed — and writes it to variables the styles merely consume. Motion obeys the same grammar: light needs time; ink bleeds.]{v-slot:description=""} :: :: :: ::page-section{:reverse="true" orientation="horizontal"} :template[Up and running in a minute]{v-slot:title=""}:template[The wrappers bring the theme engine with them — install, apply the theme once, and every control speaks the same paper. Pick your framework; the components read identically.]{v-slot:description=""}::template{v-slot:links=""} :button-link[Follow the guide]{to="https://elements.bysages.com/en/guide/introduction" variant="outline" size="sm"} :: ::template{v-slot:body=""} ```bash pnpm add @bysages/vue @bysages/core ``` ::code-group ```vue [Vue] ``` ```tsx [React] import { applyTheme } from "@bysages/core"; import { Button } from "@bysages/react"; applyTheme({ mode: "light" }); export default function App() { return ; } ``` ```tsx [Solid] import { render } from "solid-js/web"; import { applyTheme } from "@bysages/core"; import { Button } from "@bysages/solid"; applyTheme({ mode: "light" }); render(() => , document.getElementById("root")); ``` ```svelte [Svelte] ``` :: :: :: ::page-section :template[Now begin]{v-slot:title=""}:template[The introduction walks the layers; the reference documents every part of every component.]{v-slot:description=""}::template{v-slot:cards=""} ::page-card{to="https://elements.bysages.com/en/guide/introduction"} :template[Read the introduction]{v-slot:title=""}:template[One premise, one style layer, one source of truth — how the pieces fit.]{v-slot:description=""} :: ::page-card{to="https://elements.bysages.com/en/reference/button"} :template[Browse the reference]{v-slot:title=""}:template[Props, emits, and anatomy for every component, straight from the source.]{v-slot:description=""} :: :: :: ## Resources for Agents - [API catalog: every service document this site publishes](https://elements.bysages.com/.well-known/api-catalog) - [Sitemap (XML)](https://elements.bysages.com/sitemap.xml) - [Sitemap (Markdown): every page on the site](https://elements.bysages.com/sitemap.md) - [MCP server card: MCP endpoint at https://elements.bysages.com/mcp](https://elements.bysages.com/.well-known/mcp/server-card.json) - [MCP endpoint (streamable HTTP)](https://elements.bysages.com/mcp) - [llms.txt: index of the documentation for LLMs](https://elements.bysages.com/llms.txt) - [llms-full.txt: the full documentation as a single file](https://elements.bysages.com/llms-full.txt) - [Agent skills index: every skill published by this site](https://elements.bysages.com/.well-known/skills/index.json) - [Agent skill: elements-components](https://elements.bysages.com/.well-known/skills/elements-components/SKILL.md) # Accordion > Accordion, dressed in the paper-and-ink system: a ruled sheet folded by quiet rows, unfolding with a spring-chevoned dissolve. The parts — Root, Item, ItemTrigger, ItemContent, ItemIndicator. ## Basic usage :component-demo{name="accordion/basic"}## Props ### ItemContent A styled part — no props of its own; it takes the anatomy's shared styling. ### ItemContext A styled part — no props of its own; it takes the anatomy's shared styling. ### ItemIndicator A styled part — no props of its own; it takes the anatomy's shared styling. ### ItemTrigger A styled part — no props of its own; it takes the anatomy's shared styling. ### Item
| Prop | Type | Default | Description |
|---|---|---|---|
disabled
|
boolean | undefined
|
Whether the accordion item is disabled. | |
value
|
string
|
The value of the accordion item. |
| Prop | Type | Default | Description |
|---|---|---|---|
collapsible
|
boolean
|
false
|
Whether an accordion item can be closed after it has been expanded. |
defaultValue
|
string[]
|
The initial value of the expanded accordion items. Use when you don't need to control the value of the accordion. | |
disabled
|
boolean
|
Whether the accordion items are disabled | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; item(value: string): string; itemContent(value: string): string; itemTrigger(value: string): string; }>
|
The ids of the elements in the accordion. Useful for composition. | |
modelValue
|
string[]
|
The v-model value of the accordion | |
multiple
|
boolean
|
false
|
Whether multiple accordion items can be expanded at the same time. |
orientation
|
'horizontal' | 'vertical'
|
"vertical"
|
The orientation of the accordion items. |
| Prop | Type | Default | Description |
|---|---|---|---|
offsetTop
|
String
|
"0px"
|
— |
offsetBottom
|
String
|
"0px"
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
autoScroll
|
Boolean
|
true
|
Follow the stream's growth while the reader rests at the bottom. |
| Prop | Type | Default | Description |
|---|---|---|---|
label
|
String
|
What the button does, spoken to assistive tech and shown as the hover title — copy, retry, thumbs. |
| Prop | Type | Default | Description |
|---|---|---|---|
name
|
String
|
The file's name — it picks the glyph by extension. | |
size
|
Number
|
undefined
|
The file's size in bytes, when known — rendered human. |
status
|
String as PropType<"uploading" | "ready" | "error">
|
"ready"
|
The upload's state on the wire. |
| Prop | Type | Default | Description |
|---|---|---|---|
role
|
String as PropType<"user" | "assistant" | "system">
|
"assistant"
|
Whose stroke this is — the user's words sit in a recessed bubble, the assistant speaks flat on the paper. |
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue
|
String
|
""
|
The draft in the vessel — bind
v-model
; it clears itself on a successful submit.
|
placeholder
|
String
|
"Send a message"
|
The quiet invitation before the reader types. |
disabled
|
Boolean
|
false
|
Still the words on the canvas, but the submit seal does nothing and Enter stays a line break. |
busy
|
Boolean
|
false
|
The machine is working — the seal becomes a stop seal and Enter holds its breath. |
mentions
|
Object as PropType<{ items: MentionEntry[]; trigger?: string }>
|
undefined
|
Mention candidates for the field: pass the roster and the summon character (
@
unless told otherwise) and the vessel rides the textarea. While candidates are up, Enter inserts and the send waits.
|
| Prop | Type | Default | Description |
|---|---|---|---|
label
|
String
|
"Thinking"
|
The trigger's words — the fold arrives open under them. |
defaultOpen
|
Boolean
|
false
|
The fold arrives open when set — rides the shared collapsible. |
| Prop | Type | Default | Description |
|---|---|---|---|
content
|
String
|
The markdown text to set on the paper — streamed in freely; raw HTML and executable links stay inert. | |
highlighter
|
Function as PropType<(code: string, lang?: string) => string>
|
undefined
|
Optional code-highlighting function re-inking fenced blocks; the component stays agnostic about which engine provides it. |
copyLabel
|
String
|
"Copy code"
|
The copy stamp's accessible name before the copy lands. |
copiedLabel
|
String
|
"Copied"
|
The copy stamp's accessible name once the text has landed. |
| Prop | Type | Default | Description |
|---|---|---|---|
href
|
String
|
Where the ink came from — also the link text when no slot is given; opens in a new tab, referrer-free. |
| Prop | Type | Default | Description |
|---|---|---|---|
prompt
|
String
|
The next stroke this seal proposes — also its label; handed back whole on
select
.
|
| Prop | Type | Default | Description |
|---|---|---|---|
name
|
String
|
The name the tool was reached by — shown raw on the trigger unless the
label
slot speaks friendlier words.
|
|
status
|
String as PropType<"pending" | "running" | "completed" | "error">
|
The state the call reached — pending, running, completed, or error; stamped on the fold and whispered in the status chip. | |
defaultOpen
|
Boolean
|
false
|
The fold arrives open when set — rides the shared collapsible. |
| Prop | Type | Default | Description |
|---|---|---|---|
status
|
String
|
"ink"
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
value
|
number
|
The value of the marker |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the dial ladder — the diameter the needle sweeps. |
aria-label
|
string
|
The aria-label of the slider. | |
aria-labelledby
|
string
|
The aria-labelledby of the slider. | |
defaultValue
|
number
|
0
|
The initial value of the slider. Use when you don't need to control the value of the slider. |
dir
|
'ltr' | 'rtl'
|
"ltr"
|
The document's text/writing direction. |
disabled
|
boolean
|
Whether the slider is disabled. | |
getRootNode
|
() => ShadowRoot | Document | Node
|
A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; thumb: string; hiddenInput: string; control: string; valueText: string; }>
|
The ids of the elements in the machine. Useful for composition. | |
invalid
|
boolean
|
Whether the slider is invalid. | |
modelValue
|
number
|
The v-model value of the angle slider | |
name
|
string
|
The name of the slider. Useful for form submission. | |
readOnly
|
boolean
|
Whether the slider is read-only. | |
step
|
number
|
1
|
The step value for the slider. |
| Prop | Type | Default | Description |
|---|---|---|---|
ratio
|
String
|
"1 / 1"
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue
|
String
|
""
|
— |
items
|
Array as PropType
|
() => []
|
— |
placeholder
|
String
|
undefined
|
— |
filter
|
Function as PropType<(item: string, input: string) => boolean>
|
undefined
|
Field text to match against; defaults to the item itself. |
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the field row. |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType
|
"md"
|
Seal diameter: one rung of the control-height ladder — the default is the md rung, level with the other control families, so an avatar rides a row without stretching it. |
shape
|
String as PropType<"circle" | "square">
|
"circle"
|
The corner: round by default; square cuts it sharp, a stamp beside a round portrait. |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; image: string; fallback: string; }>
|
The ids of the elements in the avatar. Useful for composition. |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
undefined
|
One register for every seal: falls onto data-size for the stylesheet to re-point the avatars' measure. |
| Prop | Type | Default | Description |
|---|---|---|---|
threshold
|
Number
|
400
|
— |
label
|
String
|
"Back to top"
|
— |
scrollEl
|
Function
|
undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
tone
|
String
|
"ink"
|
— |
variant
|
String
|
"solid"
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
status
|
String as PropType<"ink" | "info" | "success" | "warning" | "danger">
|
"ink"
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
columns
|
Number
|
3
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
span
|
Number
|
1
|
— |
rowSpan
|
Number
|
1
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
blocked
|
Boolean
|
false
|
Whether the curtain is drawn. |
| Prop | Type | Default | Description |
|---|---|---|---|
variant
|
String
|
"solid"
|
How the button rests: a solid ink fill, an outline shell, a quiet ghost, or a subtle wash. |
tone
|
String
|
"ink"
|
The pigment the variant is inked with; ink is the solemn default, and the fixed pigments speak for their meaning. |
size
|
String
|
"md"
|
One rung of the control-height ladder: the small, medium, or large register. |
square
|
Boolean
|
false
|
Icon-only: the silhouette squares to the control height. |
asChild
|
Boolean
|
false
|
Render the slot's element as the button — the recipe rides on it (a NuxtLink, say) instead of wrapping it in a nested |
disabled
|
Boolean
|
false
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
orientation
|
String as PropType<"horizontal" | "vertical">
|
"horizontal"
|
The seam runs across the group (default) or down it. |
size
|
String as PropType<"sm" | "md" | "lg">
|
undefined
|
One register for every member: falls onto data-size for the stylesheet to retune the buttons' heights. |
radius
|
String as PropType<"sm" | "md" | "lg" | "xl" | "2xl" | "full">
|
undefined
|
The members' corner register: retunes --bs-radius-control for the whole fused shape — edges and trimmed seams keep one story. |
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue
|
null as unknown as PropType
|
undefined
|
Selected date(s) — an array, as the machine speaks in ranges. |
min
|
null as unknown as PropType
|
undefined
|
— |
max
|
null as unknown as PropType
|
undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
fallback
|
string
|
The fallback content to render when autoplay is paused. |
| Prop | Type | Default | Description |
|---|---|---|---|
index
|
number
|
The index of the indicator. | |
readOnly
|
boolean | undefined
|
false
|
Whether the indicator is read only. |
| Prop | Type | Default | Description |
|---|---|---|---|
index
|
number
|
The index of the item. | |
snapAlign
|
"start" | "end" | "center" | undefined
|
"start"
|
The snap alignment of the item. |
| Prop | Type | Default | Description |
|---|---|---|---|
allowMouseDrag
|
boolean
|
false
|
Whether to allow scrolling via dragging with mouse |
autoplay
|
boolean | { delay: number; }
|
false
|
Whether to scroll automatically. The default delay is 4000ms. |
autoSize
|
boolean
|
false
|
Whether to enable variable width slides. |
defaultPage
|
number
|
0
|
The initial page to scroll to when rendered. Use when you don't need to control the page of the carousel. |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; item(index: number): string; itemGroup: string; nextTrigger: string; prevTrigger: string; indicatorGroup: string; indicator(index: number): string; }>
|
The ids of the elements in the carousel. Useful for composition. | |
inViewThreshold
|
number | number[]
|
0.6
|
The threshold for determining if an item is in view. |
loop
|
boolean
|
false
|
Whether the carousel should loop around. |
orientation
|
'horizontal' | 'vertical'
|
"horizontal"
|
The orientation of the element. |
padding
|
string
|
Defines the extra space added around the scrollable area, enabling nearby items to remain partially in view. | |
page
|
number
|
The controlled page of the carousel. | |
slideCount
|
number
|
The total number of slides. Useful for SSR to render the initial ating the snap points. | |
slidesPerMove
|
number | 'auto'
|
"auto"
|
The number of slides to scroll at a time. When set to
auto
, the number of slides to scroll is determined by the
slidesPerPage
property.
|
slidesPerPage
|
number
|
1
|
The number of slides to show at a time. |
snapType
|
'proximity' | 'mandatory'
|
"mandatory"
|
The snap type of the item. |
spacing
|
string
|
"0px"
|
The amount of space between items. |
translations
|
carousel.IntlTranslations
|
The localized messages to use. |
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue
|
Array as PropType
|
undefined
|
— |
data
|
Array as PropType
|
— | |
placeholder
|
String
|
"Select…"
|
— |
highlightTrigger
|
String as PropType<"click" | "hover">
|
undefined
|
— |
filterable
|
Boolean
|
false
|
— |
multiple
|
Boolean
|
false
|
— |
disabled
|
Boolean
|
false
|
— |
invalid
|
Boolean
|
false
|
— |
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the trigger. |
| Prop | Type | Default | Description |
|---|---|---|---|
value
|
UnwrapRef
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
defaultValue
|
string[]
|
The initial value of
value
when uncontrolled
|
|
disabled
|
boolean
|
If
true
, the checkbox group is disabled
|
|
invalid
|
boolean
|
If
true
, the checkbox group is invalid
|
|
maxSelectedValues
|
number
|
The maximum number of selected values | |
modelValue
|
string[]
|
The controlled value of the checkbox group | |
name
|
string
|
The name of the input fields in the checkbox group (Useful for form submission). | |
readOnly
|
boolean
|
If
true
, the checkbox group is read-only
|
| Prop | Type | Default | Description |
|---|---|---|---|
indeterminate
|
boolean
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung for the control's box: the tick scales with it. |
checked
|
checkbox.CheckedState
|
The controlled checked state of the checkbox | |
defaultChecked
|
checkbox.CheckedState
|
The initial checked state of the checkbox when rendered. Use when you don't need to control the checked state of the checkbox. | |
disabled
|
boolean
|
Whether the checkbox is disabled | |
form
|
string
|
The id of the form that the checkbox belongs to. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; hiddenInput: string; control: string; label: string; }>
|
The ids of the elements in the checkbox. Useful for composition. | |
invalid
|
boolean
|
Whether the checkbox is invalid | |
name
|
string
|
The name of the input field in a checkbox. Useful for form submission. | |
readOnly
|
boolean
|
Whether the checkbox is read-only | |
required
|
boolean
|
Whether the checkbox is required | |
value
|
string
|
"on"
|
The value of checkbox input. Useful for form submission. |
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue
|
Array as PropType
|
() => []
|
— |
options
|
Array as PropType
|
— | |
layout
|
String as PropType<"vertical" | "horizontal">
|
"vertical"
|
— |
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One register for every box: falls onto each root's data-size for the stylesheet to retune. |
invalid
|
Boolean
|
false
|
— |
disabled
|
Boolean
|
false
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
value
|
Number
|
— | |
max
|
Number
|
undefined
|
— |
tone
|
String
|
"ink"
|
— |
variant
|
String
|
"solid"
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the value field and its copy seal. |
defaultValue
|
string
|
The initial value to be copied to the clipboard when rendered. Use when you don't need to control the value of the clipboard. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; input: string; label: string; }>
|
The ids of the elements in the clipboard. Useful for composition. | |
modelValue
|
string
|
The v-model value of the clipboard | |
timeout
|
number
|
3000
|
The timeout for the copy operation |
translations
|
clipboard.IntlTranslations
|
Specifies the localized strings that identifies the accessibility elements and their states |
| Prop | Type | Default | Description |
|---|---|---|---|
collapsedHeight
|
number | string
|
The height of the content when collapsed. | |
collapsedWidth
|
number | string
|
The width of the content when collapsed. | |
defaultOpen
|
boolean
|
The initial open state of the collapsible when rendered. Use when you don't need to control the open state of the collapsible. | |
disabled
|
boolean
|
Whether the collapsible is disabled. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; content: string; trigger: string; }>
|
The ids of the elements in the collapsible. Useful for composition. | |
lazyMount
|
boolean
|
false
|
Whether to enable lazy mounting |
open
|
boolean
|
The controlled open state of the collapsible. | |
unmountOnExit
|
boolean
|
false
|
Whether to unmount on exit. |
| Prop | Type | Default | Description |
|---|---|---|---|
xChannel
|
ColorChannel | undefined
|
— | |
yChannel
|
ColorChannel | undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
channel
|
ExtendedColorChannel
|
— | |
orientation
|
Orientation | undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
channel
|
ColorChannel
|
— | |
orientation
|
Orientation | undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the swatch seal. |
closeOnSelect
|
boolean
|
false
|
Whether to close the color picker when a swatch is selected |
defaultFormat
|
colorPicker.ColorFormat
|
"rgba"
|
The initial color format when rendered. Use when you don't need to control the color format of the color picker. |
defaultOpen
|
boolean
|
The initial open state of the color picker when rendered. Use when you don't need to control the open state of the color picker. | |
defaultValue
|
colorPicker.Color
|
#000000
|
The initial color value when rendered. Use when you don't need to control the color value of the color picker. |
disabled
|
boolean
|
Whether the color picker is disabled | |
format
|
colorPicker.ColorFormat
|
The controlled color format to use | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; control: string; trigger: string; label: string; input: string; hiddenInput: string; content: string; area: string; areaGradient: string; positioner: string; formatSelect: string; areaThumb: string; channelInput(id: string): string; channelSliderTrack(id: colorPicker.ColorChannel): string; channelSliderThumb(id: colorPicker.ColorChannel): string; }>
|
The ids of the elements in the color picker. Useful for composition. | |
initialFocusEl
|
() => HTMLElement | null
|
The initial focus element when the color picker is opened. | |
inline
|
boolean
|
Whether the color picker is inline | |
invalid
|
boolean
|
Whether the color picker is invalid | |
modelValue
|
colorPicker.Color
|
The v-model value of the color picker | |
name
|
string
|
The name for the form input | |
open
|
boolean
|
The controlled open state of the color picker | |
openAutoFocus
|
boolean
|
true
|
Whether to auto focus the color picker when it is opened |
positioning
|
colorPicker.PositioningOptions
|
The positioning options for the color picker | |
readOnly
|
boolean
|
Whether the color picker is read-only | |
required
|
boolean
|
Whether the color picker is required |
| Prop | Type | Default | Description |
|---|---|---|---|
disabled
|
boolean | undefined
|
Whether the swatch trigger is disabled | |
value
|
string | Color
|
The color value |
| Prop | Type | Default | Description |
|---|---|---|---|
respectAlpha
|
boolean | undefined
|
Whether to include the alpha channel in the color | |
value
|
string | Color
|
The color value |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
string | undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
format
|
ColorStringFormat
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
format
|
ColorFormat
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
item
|
CollectionItem
|
The item to render | |
persistFocus
|
boolean | undefined
|
Whether hovering outside should clear the highlighted state |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the field row. |
allowCustomValue
|
boolean
|
Whether to allow typing custom values in the input | |
alwaysSubmitOnEnter
|
boolean
|
Whether to allow bypassing the default two-step behavior (Enter to close combobox, then Enter to submit form) and instead submit the form immediately on Enter press. This is useful for single-field autocomplete forms where Enter should submit the form directly. | |
autoFocus
|
boolean
|
Whether to autofocus the input on mount | |
closeOnSelect
|
boolean
|
Whether to close the combobox when an item is selected. | |
collection
|
ListCollection
|
The collection of items | |
composite
|
boolean
|
true
|
Whether the combobox is a composed with other composite widgets like tabs |
defaultHighlightedValue
|
string
|
The initial highlighted value of the combobox when rendered. Use when you don't need to control the highlighted value of the combobox. | |
defaultInputValue
|
string
|
""
|
The initial value of the combobox's input when rendered. Use when you don't need to control the value of the combobox's input. |
defaultOpen
|
boolean
|
The initial open state of the combobox when rendered. Use when you don't need to control the open state of the combobox. | |
defaultValue
|
string[]
|
[]
|
The initial value of the combobox's selected items when rendered. Use when you don't need to control the value of the combobox's selected items. |
disabled
|
boolean
|
Whether the combobox is disabled | |
disableLayer
|
boolean
|
Whether to disable registering this a dismissable layer | |
form
|
string
|
The associate form of the combobox. | |
highlightedValue
|
string
|
The controlled highlighted value of the combobox | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; label: string; control: string; input: string; content: string; trigger: string; clearTrigger: string; item(id: string, index?: number): string; positioner: string; itemGroup(id: string | number): string; itemGroupLabel(id: string | number): string; }>
|
The ids of the elements in the combobox. Useful for composition. | |
inputBehavior
|
'autohighlight' | 'autocomplete' | 'none'
|
"none"
|
Defines the auto-completion behavior of the combobox. -
autohighlight
: The first focused item is highlighted as the user types -
autocomplete
: Navigating the listbox with the arrow keys selects the item and the input is updated
|
inputValue
|
string
|
The controlled value of the combobox's input | |
invalid
|
boolean
|
Whether the combobox is invalid | |
loopFocus
|
boolean
|
true
|
Whether to loop the keyboard navigation through the items |
modelValue
|
string[]
|
The v-model value of the combobox | |
multiple
|
boolean
|
Whether to allow multiple selection.
Good to know:
When
multiple
is
true
, the
selectionBehavior
is automatically set to
clear
. It is recommended to render the selected items in a separate container.
|
|
name
|
string
|
The
name
attribute of the combobox's input. Useful for form submission
|
|
navigate
|
(details: combobox.NavigateDetails) => void
|
Function to navigate to the selected item | |
open
|
boolean
|
The controlled open state of the combobox | |
openOnChange
|
boolean | ((details: combobox.InputValueChangeDetails) => boolean)
|
true
|
Whether to show the combobox when the input value changes |
openOnClick
|
boolean
|
false
|
Whether to open the combobox popup on initial click on the input |
openOnKeyPress
|
boolean
|
true
|
Whether to open the combobox on arrow key press |
placeholder
|
string
|
The placeholder text of the combobox's input | |
positioning
|
combobox.PositioningOptions
|
{ placement: "bottom-start" }
|
The positioning options to dynamically position the menu |
readOnly
|
boolean
|
Whether the combobox is readonly. This puts the combobox in a "non-editable" mode but the user can still interact with it | |
required
|
boolean
|
Whether the combobox is required | |
scrollToIndexFn
|
(details: combobox.ScrollToIndexDetails) => void
|
Function to scroll to a specific index | |
selectionBehavior
|
'clear' | 'replace' | 'preserve'
|
"replace"
|
The behavior of the combobox input when an item is selected -
replace
: The selected item string is set as the input value -
clear
: The input value is cleared -
preserve
: The input value is preserved
|
translations
|
combobox.IntlTranslations
|
Specifies the localized strings that identifies the accessibility elements and their states |
| Prop | Type | Default | Description |
|---|---|---|---|
focusable
|
boolean | undefined
|
Whether the trigger is focusable |
| Prop | Type | Default | Description |
|---|---|---|---|
items
|
Array as PropType
|
() => []
|
— |
placeholder
|
String
|
undefined
|
— |
open
|
Boolean
|
undefined
|
— |
autoFilter
|
Boolean
|
true
|
— |
inputValue
|
String
|
undefined
|
— |
emptyText
|
String
|
"No matching commands"
|
— |
onSelect
|
Function as PropType<(value: string) => void>
|
undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
author
|
String
|
undefined
|
— |
datetime
|
String
|
undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
density
|
String as PropType
|
undefined
|
— |
scene
|
String as PropType
|
undefined
|
— |
accent
|
String
|
undefined
|
— |
dir
|
String as PropType<"ltr" | "rtl">
|
undefined
|
— |
locale
|
String
|
undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String
|
"readable"
|
The typographic measure the ink runs to: narrow, readable, wide, or the full frame. |
padding
|
Boolean
|
true
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
items
|
Array as PropType
|
— | |
layout
|
String as PropType<"list" | "grid">
|
"list"
|
Ledger rows or a lattice of cards. |
pageSize
|
Number as PropType
|
undefined
|
Records per page; leave unset to show everything at once. |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the segmented field. |
allSegments
|
dateInput.Props['allSegments']
|
Whether to include all date/time segments based on the granularity. | |
defaultPlaceholderValue
|
dateInput.Props['defaultPlaceholderValue']
|
The initial placeholder date value when rendered. | |
defaultValue
|
dateInput.DateValue[]
|
The initial selected date(s) when rendered. Use when you don't need to control the selected date(s). | |
disabled
|
boolean
|
Whether the date input is disabled. | |
form
|
string
|
The associate form of the hidden input element. | |
format
|
dateInput.Props['format']
|
The format of the date to display in the input. | |
formatter
|
dateInput.Props['formatter']
|
The formatter used to format the date segments. | |
granularity
|
dateInput.Props['granularity']
|
The granularity of the date input. | |
hideTimeZone
|
boolean
|
false
|
Whether to hide the time zone segment when the value is a
ZonedDateTime
.
|
hourCycle
|
dateInput.Props['hourCycle']
|
The hour cycle used for formatting time segments. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
dateInput.Props['ids']
|
The ids of the elements in the date input. Useful for composition. | |
invalid
|
boolean
|
Whether the date input is invalid. | |
locale
|
string
|
"en-US"
|
The locale (BCP 47 language tag) to use when formatting the date. |
max
|
dateInput.DateValue
|
The maximum date that can be selected. | |
min
|
dateInput.DateValue
|
The minimum date that can be selected. | |
modelValue
|
dateInput.DateValue[]
|
The v-model value of the date input. | |
name
|
string
|
The
name
attribute of the hidden input element.
|
|
placeholderValue
|
dateInput.Props['placeholderValue']
|
The placeholder date value used to generate placeholder segments. | |
readOnly
|
boolean
|
Whether the date input is read-only. | |
required
|
boolean
|
Whether the date input is required. | |
selectionMode
|
dateInput.SelectionMode
|
"single"
|
The selection mode of the date input. -
single
- only one date can be selected -
range
- a range of dates can be selected
|
shouldForceLeadingZeros
|
boolean
|
Whether to force leading zeros for numeric segments. | |
timeZone
|
string
|
"UTC"
|
The time zone to use. |
translations
|
dateInput.Props['translations']
|
The localized messages to use. | |
value
|
dateInput.DateValue[]
|
The controlled selected date(s). |
| Prop | Type | Default | Description |
|---|---|---|---|
fixOnBlur
|
boolean | undefined
|
true
|
Whether to fix the input value on blur. |
index
|
number | undefined
|
The index of the input to focus. |
| Prop | Type | Default | Description |
|---|---|---|---|
value
|
PresetTriggerValue
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the field row. |
closeOnSelect
|
boolean
|
true
|
Whether the calendar should close after the date selection is complete. This is ignored when the selection mode is
multiple
.
|
createCalendar
|
(identifier: datePicker.CalendarIdentifier) => datePicker.Calendar
|
A function that creates a Calendar object for a given calendar identifier. Enables non-Gregorian calendar support (Persian, Buddhist, Islamic, etc.) without bundling all calendars by default. @example import { createCalendar } from "@internationalized/date" { locale: "fa-IR", createCalendar } | |
defaultFocusedValue
|
datePicker.DateValue
|
The initial focused date when rendered. Use when you don't need to control the focused date of the date picker. | |
defaultOpen
|
boolean
|
The initial open state of the date picker when rendered. Use when you don't need to control the open state of the date picker. | |
defaultValue
|
datePicker.DateValue[]
|
The initial selected date(s) when rendered. Use when you don't need to control the selected date(s) of the date picker. | |
defaultView
|
datePicker.DateView
|
"day"
|
The default view of the calendar |
disabled
|
boolean
|
Whether the calendar is disabled. | |
fixedWeeks
|
boolean
|
Whether the calendar should have a fixed number of weeks. This renders the calendar with 6 weeks instead of 5 or 6. | |
focusedValue
|
datePicker.DateValue
|
The controlled focused date. | |
format
|
(date: datePicker.DateValue, details: datePicker.LocaleDetails) => string
|
The format of the date to display in the input. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; label(index: number): string; table(id: string): string; tableHeader(id: string): string; tableBody(id: string): string; tableRow(id: string): string; content: string; cellTrigger(id: string): string; prevTrigger(view: datePicker.DateView): string; nextTrigger(view: datePicker.DateView): string; viewTrigger(view: datePicker.DateView): string; clearTrigger: string; control: string; input(index: number): string; trigger: string; monthSelect: string; yearSelect: string; positioner: string; }>
|
The ids of the elements in the date picker. Useful for composition. | |
inline
|
boolean
|
Whether the date picker is inline | |
invalid
|
boolean
|
Whether the date picker is in an invalid state | |
isDateUnavailable
|
(date: datePicker.DateValue, locale: string) => boolean
|
Returns whether a date of the calendar is available. | |
locale
|
string
|
"en-US"
|
The locale (BCP 47 language tag) to use when formatting the date. |
max
|
datePicker.DateValue
|
The maximum date that can be selected. | |
maxSelectedDates
|
number
|
The maximum number of dates that can be selected. This is only applicable when
selectionMode
is
multiple
.
|
|
maxView
|
datePicker.DateView
|
"year"
|
The maximum view of the calendar |
min
|
datePicker.DateValue
|
The minimum date that can be selected. | |
minView
|
datePicker.DateView
|
"day"
|
The minimum view of the calendar |
modelValue
|
datePicker.DateValue[]
|
The v-model value of the date picker | |
name
|
string
|
The
name
attribute of the input element.
|
|
numOfMonths
|
number
|
The number of months to display. | |
open
|
boolean
|
The controlled open state of the date picker | |
openOnClick
|
boolean
|
false
|
Whether to open the calendar when the input is clicked. |
outsideDaySelectable
|
boolean
|
false
|
Whether day outside the visible range can be selected. |
parse
|
(value: string, details: datePicker.LocaleDetails) => datePicker.DateValue | undefined
|
Function to parse the date from the input back to a DateValue. | |
placeholder
|
string
|
The placeholder text to display in the input. | |
positioning
|
datePicker.PositioningOptions
|
The user provided options used to position the date picker content | |
readOnly
|
boolean
|
Whether the calendar is read-only. | |
required
|
boolean
|
Whether the date picker is required | |
selectionMode
|
datePicker.SelectionMode
|
"single"
|
The selection mode of the calendar. -
single
- only one date can be selected -
multiple
- multiple dates can be selected -
range
- a range of dates can be selected
|
showWeekNumbers
|
boolean
|
Whether to show the week number column in the day view. | |
startOfWeek
|
number
|
The first day of the week.
0
- Sunday
1
- Monday
2
- Tuesday
3
- Wednesday
4
- Thursday
5
- Friday
6
- Saturday
|
|
timeZone
|
string
|
"UTC"
|
The time zone to use |
translations
|
datePicker.IntlTranslations
|
The localized messages to use. | |
view
|
datePicker.DateView
|
The view of the calendar |
| Prop | Type | Default | Description |
|---|---|---|---|
value
|
Reactive
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
columns
|
number | undefined
|
— | |
id
|
string | undefined
|
— | |
view
|
DateView | undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
placeholder
|
string | undefined
|
Text to display when no date is selected. | |
separator
|
string | undefined
|
", "
|
The separator to use between multiple date values when using default rendering. |
| Prop | Type | Default | Description |
|---|---|---|---|
view
|
DateView
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
week
|
DateValue[]
|
— | |
weekIndex
|
number
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
threshold
|
Number as PropType
|
0.2
|
How much of the placeholder must be visible before the content mounts, from 0 (any pixel) to 1 (the whole box). |
| Prop | Type | Default | Description |
|---|---|---|---|
layout
|
String as PropType<"horizontal" | "vertical">
|
"horizontal"
|
— |
bordered
|
Boolean
|
false
|
The framed register: one hairline round the whole, terms on inset paper. |
column
|
Number
|
1
|
Pairs across the grid: one ledger per column. |
| Prop | Type | Default | Description |
|---|---|---|---|
span
|
Number
|
1
|
Column pairs this entry stretches across. |
| Prop | Type | Default | Description |
|---|---|---|---|
aria-label
|
string
|
Human readable label for the dialog, in event the dialog title is not rendered | |
closeOnEscape
|
boolean
|
true
|
Whether to close the dialog when the escape key is pressed |
closeOnInteractOutside
|
boolean
|
true
|
Whether to close the dialog when the outside is clicked |
defaultOpen
|
boolean
|
false
|
The initial open state of the dialog when rendered. Use when you don't need to control the open state of the dialog. |
defaultTriggerValue
|
string | null
|
The initial trigger value when rendered. Use when you don't need to control the trigger value. | |
finalFocusEl
|
() => HTMLElement | null
|
Element to receive focus when the dialog is closed | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ trigger: string; positioner: string; backdrop: string; content: string; closeTrigger: string; title: string; description: string; }>
|
The ids of the elements in the dialog. Useful for composition. | |
initialFocusEl
|
() => HTMLElement | null
|
Element to receive focus when the dialog is opened | |
modal
|
boolean
|
true
|
Whether to prevent pointer interaction outside the element and hide all content below it |
open
|
boolean
|
The controlled open state of the dialog | |
persistentElements
|
(() => Element | null)[]
|
Returns the persistent elements that: - should not have pointer-events disabled - should not trigger the dismiss event | |
preventScroll
|
boolean
|
true
|
Whether to prevent scrolling behind the dialog when it's opened |
restoreFocus
|
boolean
|
Whether to restore focus to the element that had focus before the dialog was opened | |
role
|
'dialog' | 'alertdialog'
|
"dialog"
|
The dialog's role |
trapFocus
|
boolean
|
true
|
Whether to trap focus inside the dialog when it's opened |
triggerValue
|
string | null
|
The value of the trigger that currently open the dialog |
| Prop | Type | Default | Description |
|---|---|---|---|
value
|
string
|
The value that identifies this specific trigger |
| Prop | Type | Default | Description |
|---|---|---|---|
maxScale
|
Number
|
1.5
|
— |
radius
|
Number
|
96
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
closeOnEscape
|
boolean
|
true
|
Whether to close the drawer when the escape key is pressed. |
closeOnInteractOutside
|
boolean
|
true
|
Whether to close the drawer when the outside is clicked. |
closeThreshold
|
number
|
0.25
|
The threshold distance for dismissing the drawer. |
defaultOpen
|
boolean
|
The initial open state of the drawer. | |
defaultSnapPoint
|
drawer.SnapPoint | null
|
1
|
The default snap point of the drawer. |
defaultTriggerValue
|
string | null
|
The initial trigger value when rendered. Use when you don't need to control the trigger value. | |
finalFocusEl
|
() => HTMLElement | null
|
Element to receive focus when the sheet is closed. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ backdrop: string; positioner: string; content: string; title: string; trigger: string; grabber: string; grabberIndicator: string; closeTrigger: string; }>
|
The ids of the elements in the drawer. Useful for composition. | |
initialFocusEl
|
() => HTMLElement | null
|
Element to receive focus when the sheet is opened. | |
modal
|
boolean
|
true
|
Whether to prevent pointer interaction outside the element and hide all content below it. |
open
|
boolean
|
Whether the drawer is open. | |
preventDragOnScroll
|
boolean
|
true
|
Whether to prevent dragging on scrollable elements. |
preventScroll
|
boolean
|
true
|
Whether to prevent scrolling behind the sheet when it's opened |
restoreFocus
|
boolean
|
Whether to restore focus to the element that had focus before the sheet was opened. | |
role
|
'dialog' | 'alertdialog'
|
"dialog"
|
The sheet's role |
snapPoint
|
drawer.SnapPoint | null
|
The currently active snap point. | |
snapPoints
|
(number | string)[]
|
[1]
|
The snap points of the drawer. |
snapToSequentialPoints
|
boolean
|
false
|
Whether the drawer should snap to sequential points when swiping. |
swipeDirection
|
drawer.SwipeDirection
|
"down"
|
The direction in which the drawer can be swiped. |
swipeVelocityThreshold
|
number
|
700
|
The threshold velocity (in pixels/s) for closing the drawer. |
trapFocus
|
boolean
|
true
|
Whether to trap focus inside the sheet when it's opened. |
triggerValue
|
string | null
|
The value of the trigger that currently open the drawer |
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue
|
Array as PropType
|
() => [""]
|
The rows' values; the group renders one Input per entry. |
min
|
Number
|
0
|
The fewest rows the group keeps; the remove seals yield first. |
max
|
Number
|
undefined
|
The most rows the group grows to; the add control yields then. |
placeholder
|
String
|
undefined
|
— |
addLabel
|
String
|
"Add entry"
|
The add control's visible words. |
disabled
|
Boolean
|
false
|
— |
invalid
|
Boolean
|
false
|
— |
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the ladder, handed to every row's field and seals. |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the editing field. |
activationMode
|
editable.ActivationMode
|
"focus"
|
The activation mode for the preview element. - "focus" - Enter edit mode when the preview is focused - "dblclick" - Enter edit mode when the preview is double-clicked - "click" - Enter edit mode when the preview is clicked |
autoResize
|
boolean
|
Whether the editable should auto-resize to fit the content. | |
defaultEdit
|
boolean
|
Whether the editable is in edit mode by default. | |
defaultValue
|
string
|
The initial value of the editable when rendered. Use when you don't need to control the value of the editable. | |
disabled
|
boolean
|
Whether the editable is disabled. | |
edit
|
boolean
|
Whether the editable is in edit mode. | |
finalFocusEl
|
() => HTMLElement | null
|
The element to receive focus when the editable is closed. | |
form
|
string
|
The associate form of the underlying input. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; area: string; label: string; preview: string; input: string; control: string; submitTrigger: string; cancelTrigger: string; editTrigger: string; }>
|
The ids of the elements in the editable. Useful for composition. | |
invalid
|
boolean
|
Whether the input's value is invalid. | |
maxLength
|
number
|
The maximum number of characters allowed in the editable | |
modelValue
|
string
|
The v-model value of the editable | |
name
|
string
|
The name attribute of the editable component. Used for form submission. | |
placeholder
|
string | { edit: string; preview: string; }
|
The placeholder text for the editable. | |
readOnly
|
boolean
|
Whether the editable is read-only. | |
required
|
boolean
|
Whether the editable is required. | |
selectOnFocus
|
boolean
|
true
|
Whether to select the text in the input when it is focused. |
submitMode
|
editable.SubmitMode
|
"both"
|
The action that triggers submit in the edit mode: - "enter" - Trigger submit when the enter key is pressed - "blur" - Trigger submit when the editable is blurred - "none" - No action will trigger submit. You need to use the submit button - "both" - Pressing
Enter
and blurring the input will trigger submit
|
translations
|
editable.IntlTranslations
|
The translations for the editable. |
| Prop | Type | Default | Description |
|---|---|---|---|
lines
|
Number
|
1
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue
|
InputHTMLAttributes['value']
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
value
|
string
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
disabled
|
boolean
|
Indicates whether the field is disabled. | |
id
|
string
|
The id of the field. | |
ids
|
ElementIds
|
The ids of the field parts. | |
invalid
|
boolean
|
Indicates whether the field is invalid. | |
readOnly
|
boolean
|
Indicates whether the field is read-only. | |
required
|
boolean
|
Indicates whether the field is required. | |
target
|
string
|
The target field item value the label should point to. |
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue
|
SelectHTMLAttributes['value']
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
autoresize
|
boolean
|
false
|
Whether the textarea should autoresize |
modelValue
|
TextareaHTMLAttributes['value']
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
disabled
|
boolean | 'true' | 'false'
|
Indicates whether the fieldset is disabled. | |
id
|
string
|
The id of the fieldset. | |
invalid
|
boolean
|
Indicates whether the fieldset is invalid. |
| Prop | Type | Default | Description |
|---|---|---|---|
disableClick
|
boolean | undefined
|
Whether to disable the click event on the dropzone |
| Prop | Type | Default | Description |
|---|---|---|---|
type
|
ItemType | undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
type
|
string
|
'.*'
|
The file type to match against. Matches all file types by default. |
| Prop | Type | Default | Description |
|---|---|---|---|
file
|
File
|
— | |
type
|
ItemType | undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the trigger. |
accept
|
Record
|
The accept file types | |
acceptedFiles
|
File[]
|
The controlled accepted files | |
allowDrop
|
boolean
|
true
|
Whether to allow drag and drop in the dropzone element |
capture
|
'user' | 'environment'
|
The default camera to use when capturing media | |
defaultAcceptedFiles
|
File[]
|
The default accepted files | |
directory
|
boolean
|
Whether to accept directories, only works in webkit browsers | |
disabled
|
boolean
|
Whether the file input is disabled | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; dropzone: string; hiddenInput: string; trigger: string; label: string; item(id: string): string; itemName(id: string): string; itemSizeText(id: string): string; itemPreview(id: string): string; }>
|
The ids of the elements. Useful for composition. | |
invalid
|
boolean
|
Whether the file input is invalid | |
locale
|
string
|
"en-US"
|
The current locale. Based on the BCP 47 definition. |
maxFiles
|
number
|
1
|
The maximum number of files |
maxFileSize
|
number
|
Infinity
|
The maximum file size in bytes |
minFileSize
|
number
|
0
|
The minimum file size in bytes |
name
|
string
|
The name of the underlying file input | |
preventDocumentDrop
|
boolean
|
true
|
Whether to prevent the drop event on the document |
readOnly
|
boolean
|
Whether the file input is read-only | |
required
|
boolean
|
Whether the file input is required | |
transformFiles
|
(files: File[]) => Promise
|
Function to transform the files | |
translations
|
fileUpload.IntlTranslations
|
The localized messages to use. | |
validate
|
(file: File, details: fileUpload.FileValidateDetails) => fileUpload.FileError[] | null
|
Function to validate a file |
| Prop | Type | Default | Description |
|---|---|---|---|
open
|
Boolean
|
undefined
|
Controlled openness: leave unset to let the group hold its own state; while set, the Trigger reports back through
update:open
.
|
placement
|
String as PropType
|
"bottom-end"
|
Which corner the group moors at. |
size
|
String as PropType
|
"lg"
|
One rung of the button ladder for the whole group. |
| Prop | Type | Default | Description |
|---|---|---|---|
label
|
String
|
undefined
|
The accessible name; the control is icon-only. |
| Prop | Type | Default | Description |
|---|---|---|---|
label
|
String
|
The action's name: the button's accessible name and the annotation surfaced beside it while the group is open. | |
disabled
|
Boolean
|
false
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
axis
|
ResizeTriggerAxis
|
The axis of the resize handle |
| Prop | Type | Default | Description |
|---|---|---|---|
allowOverflow
|
boolean
|
true
|
Whether the panel should be strictly contained within the boundary when dragging |
closeOnEscape
|
boolean
|
Whether the panel should close when the escape key is pressed | |
defaultOpen
|
boolean
|
false
|
The initial open state of the panel when rendered. Use when you don't need to control the open state of the panel. |
defaultPosition
|
Point
|
The initial position of the panel when rendered. Use when you don't need to control the position of the panel. | |
defaultSize
|
Size
|
The default size of the panel | |
dir
|
'ltr' | 'rtl'
|
"ltr"
|
The document's text/writing direction. |
disabled
|
boolean
|
Whether the panel is disabled | |
draggable
|
boolean
|
true
|
Whether the panel is draggable |
finalFocusEl
|
() => HTMLElement | null
|
The element to receive focus when the panel closes | |
getAnchorPosition
|
(details: floatingPanel.AnchorPositionDetails) => Point
|
Function that returns the initial position of the panel when it is opened. If provided, will be used instead of the default position. | |
getBoundaryEl
|
() => HTMLElement | null
|
The boundary of the panel. Useful for recalculating the boundary rect when the it is resized. | |
gridSize
|
number
|
1
|
The snap grid for the panel |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ trigger: string; positioner: string; content: string; title: string; header: string; }>
|
The ids of the elements in the floating panel. Useful for composition. | |
initialFocusEl
|
() => HTMLElement | null
|
The element to receive focus when the panel opens | |
lockAspectRatio
|
boolean
|
Whether the panel is locked to its aspect ratio | |
maxSize
|
Size
|
The maximum size of the panel | |
minSize
|
Size
|
The minimum size of the panel | |
open
|
boolean
|
The controlled open state of the panel | |
persistRect
|
boolean
|
Whether the panel size and position should be preserved when it is closed | |
position
|
Point
|
The controlled position of the panel | |
resizable
|
boolean
|
true
|
Whether the panel is resizable |
restoreFocus
|
boolean
|
true
|
Whether to restore focus to the trigger element when the panel closes |
size
|
Size
|
The size of the panel | |
strategy
|
'absolute' | 'fixed'
|
"absolute"
|
The strategy to use for positioning |
translations
|
floatingPanel.IntlTranslations
|
The translations for the floating panel. |
| Prop | Type | Default | Description |
|---|---|---|---|
stage
|
Stage
|
The stage of the panel |
| Prop | Type | Default | Description |
|---|---|---|---|
form
|
Object as PropType
|
undefined
|
The engine instance from
useForm
— values, validation and submit all live there. Optional: a form assembled without an engine (the generative vessel) degrades to layout and native semantics.
|
| Prop | Type | Default | Description |
|---|---|---|---|
form
|
Object as PropType
|
undefined
|
Overrides the enclosing Form's engine — for a field assembled on its own. |
name
|
String
|
The engine's key for this slot's value and errors. | |
label
|
String
|
undefined
|
The heading above the control. |
hint
|
String
|
undefined
|
The quiet line under the control, shown while there is no error. |
required
|
Boolean
|
false
|
Marks the label with the required ornament. |
invalid
|
Boolean
|
false
|
Forces the invalid dress, outside any engine's verdict. |
disabled
|
Boolean
|
false
|
Mutes the slot. |
| Prop | Type | Default | Description |
|---|---|---|---|
unit
|
'bit' | 'byte'
|
The unit granularity to display | |
unitDisplay
|
'long' | 'short' | 'narrow'
|
The unit display | |
unitSystem
|
'decimal' | 'binary'
|
The unit system to use for formatting | |
value
|
number
|
The byte size to format |
| Prop | Type | Default | Description |
|---|---|---|---|
compactDisplay
|
'short' | 'long' | undefined
|
— | |
currencyDisplay
|
string | undefined
|
— | |
currencySign
|
string | undefined
|
— | |
notation
|
'standard' | 'scientific' | 'engineering' | 'compact' | undefined
|
— | |
signDisplay
|
'auto' | 'never' | 'always' | 'exceptZero' | undefined
|
— | |
unit
|
string | undefined
|
— | |
unitDisplay
|
'short' | 'long' | 'narrow' | undefined
|
— | |
value
|
number
|
The byte size to format |
| Prop | Type | Default | Description |
|---|---|---|---|
localeMatcher
|
Intl.RelativeTimeFormatLocaleMatcher
|
The locale matching algorithm to use. For information about this option, see Intl page . | |
numeric
|
Intl.RelativeTimeFormatNumeric
|
The format of output message. | |
style
|
Intl.RelativeTimeFormatStyle
|
The length of the internationalized message. | |
value
|
Date
|
The date to format |
| Prop | Type | Default | Description |
|---|---|---|---|
value
|
string | Date
|
The time to format |
| Prop | Type | Default | Description |
|---|---|---|---|
columns
|
Number
|
12
|
— |
gap
|
String
|
"md"
|
— |
minChildWidth
|
String
|
undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
closeDelay
|
number
|
300
|
The duration from when the mouse leaves the trigger or content until the hover card closes. |
defaultOpen
|
boolean
|
The initial open state of the hover card when rendered. Use when you don't need to control the open state of the hover card. | |
defaultTriggerValue
|
string | null
|
The initial trigger value when rendered. Use when you don't need to control the trigger value. | |
disabled
|
boolean
|
Whether the hover card is disabled | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ trigger: string; content: string; positioner: string; arrow: string; }>
|
The ids of the elements in the popover. Useful for composition. | |
open
|
boolean
|
The controlled open state of the hover card | |
openDelay
|
number
|
700
|
The duration from when the mouse enters the trigger until the hover card opens. |
positioning
|
hoverCard.PositioningOptions
|
The user provided options used to position the popover content | |
triggerValue
|
string | null
|
The value of the trigger that currently open the hover card |
| Prop | Type | Default | Description |
|---|---|---|---|
value
|
string
|
The value that identifies this specific trigger |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String
|
"inherit"
|
Size steps follow the surrounding font size;
inherit
is the default — one em of the text the icon sits in.
|
label
|
String
|
undefined
|
The accessible name. Without it the icon is presentation-only and hidden from the accessibility tree. |
glyph
|
Object
|
undefined
|
A glyph from the registry, imported directly. Ignored when a default slot is given — an explicit glyph always wins. |
name
|
String
|
undefined
|
A registry name — only the whitelisted set the wrappers draw themselves. Ignored when
glyph
or a default slot is given.
|
| Prop | Type | Default | Description |
|---|---|---|---|
src
|
String
|
— | |
alt
|
String
|
""
|
— |
fit
|
String as PropType
|
"cover"
|
— |
loading
|
String as PropType
|
"lazy"
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
axis
|
"horizontal" | "vertical"
|
The axis of the grid lines to display |
| Prop | Type | Default | Description |
|---|---|---|---|
position
|
HandlePosition
|
The position of the handle |
| Prop | Type | Default | Description |
|---|---|---|---|
aspectRatio
|
number
|
The aspect ratio to maintain for the crop area (width / height). For example, an aspect ratio of 16 / 9 will maintain a width to height ratio of 16:9. If not provided, the crop area can be freely resized. | |
cropShape
|
'rectangle' | 'circle'
|
"rectangle"
|
The shape of the crop area. |
defaultFlip
|
imageCropper.FlipState
|
{ horizontal: false, vertical: false }
|
The initial flip state to apply to the image. |
defaultRotation
|
number
|
0
|
The initial rotation to apply to the image in degrees. |
defaultZoom
|
number
|
1
|
The initial zoom factor to apply to the image. |
fixedCropArea
|
boolean
|
false
|
Whether the crop area is fixed in size and position. |
flip
|
imageCropper.FlipState
|
The controlled flip state of the image. | |
ids
|
imageCropper.ElementIds
|
The ids of the image cropper elements | |
initialCrop
|
Rect
|
The initial rectangle of the crop area. If not provided, a smart default will be computed based on viewport size and aspect ratio. | |
maxHeight
|
number
|
Infinity
|
The maximum height of the crop area |
maxWidth
|
number
|
Infinity
|
The maximum width of the crop area |
maxZoom
|
number
|
5
|
The maximum zoom factor allowed. |
minHeight
|
number
|
40
|
The minimum height of the crop area |
minWidth
|
number
|
40
|
The minimum width of the crop area |
minZoom
|
number
|
1
|
The minimum zoom factor allowed. |
nudgeStep
|
number
|
1
|
The base nudge step for keyboard arrow keys (in pixels). |
nudgeStepCtrl
|
number
|
50
|
The nudge step when Ctrl/Cmd key is held (in pixels). |
nudgeStepShift
|
number
|
10
|
The nudge step when Shift key is held (in pixels). |
rotation
|
number
|
The controlled rotation of the image in degrees (0 - 360). | |
translations
|
imageCropper.IntlTranslations
|
Specifies the localized strings that identify accessibility elements and their states. | |
zoom
|
number
|
The controlled zoom level of the image. | |
zoomSensitivity
|
number
|
2
|
Controls how responsive pinch-to-zoom is. |
zoomStep
|
number
|
0.1
|
The amount of zoom applied per wheel step. |
| Prop | Type | Default | Description |
|---|---|---|---|
src
|
String
|
— | |
alt
|
String
|
""
|
— |
open
|
Boolean
|
undefined
|
— |
zoomable
|
Boolean
|
true
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue
|
[String, Number] as PropType
|
undefined
|
— |
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the field. |
invalid
|
Boolean
|
false
|
— |
mask
|
String
|
undefined
|
Entry mask —
9
digit,
a
letter,
*
either, anything else is literal. e.g.
"999-99-9999"
,
"(999) 999-9999"
.
|
| Prop | Type | Default | Description |
|---|---|---|---|
node
|
JsonNode
|
The node to render. | |
showQuotes
|
boolean
|
Whether to show quotes on the key. |
| Prop | Type | Default | Description |
|---|---|---|---|
indentGuide
|
boolean
|
— | |
indexPath
|
number[]
|
— | |
node
|
JsonNode
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
data
|
object
|
The data to display in the tree. | |
defaultExpandedDepth
|
number
|
The default expand level. | |
quotesOnKeys
|
boolean
|
Whether to show quotes on the keys. |
| Prop | Type | Default | Description |
|---|---|---|---|
node
|
JsonNodeHastElement
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
sider
|
String as PropType<"start" | "end">
|
undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
collapsed
|
Boolean
|
false
|
— |
width
|
String
|
"16rem"
|
— |
collapsedWidth
|
String
|
"3.5rem"
|
— |
resizable
|
Boolean
|
false
|
— |
minWidth
|
String
|
"12rem"
|
— |
maxWidth
|
String
|
"24rem"
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
underline
|
String as PropType<"always" | "hover" | "none">
|
"hover"
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
bordered
|
Boolean
|
false
|
One hairline between rows. |
hoverable
|
Boolean
|
false
|
Every row answers the pointer with a wash. |
| Prop | Type | Default | Description |
|---|---|---|---|
autoHighlight
|
boolean | undefined
|
false
|
Whether to automatically highlight the item when typing |
keyboardPriority
|
"caret" | "navigate" | undefined
|
"caret"
|
Determines how keyboard conflicts in the input are resolved. - "caret": keep native text-editing behavior - "navigate": forward supported keys to listbox navigation |
| Prop | Type | Default | Description |
|---|---|---|---|
highlightOnHover
|
boolean | undefined
|
Whether to highlight the item on hover | |
item
|
T
|
The item to render |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the ladder for the row register and the filter field. |
collection
|
ListCollection
|
The collection of items | |
defaultHighlightedValue
|
string
|
The initial value of the highlighted item when opened. Use when you don't need to control the highlighted value of the listbox. | |
defaultValue
|
string[]
|
[]
|
The initial default value of the listbox when rendered. Use when you don't need to control the value of the listbox. |
deselectable
|
boolean
|
Whether to disallow empty selection | |
disabled
|
boolean
|
Whether the listbox is disabled | |
disallowSelectAll
|
boolean
|
Whether to disallow selecting all items when
meta+a
is pressed
|
|
highlightedValue
|
string
|
The controlled key of the highlighted item | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; content: string; label: string; item(id: string | number): string; itemGroup(id: string | number): string; itemGroupLabel(id: string | number): string; }>
|
The ids of the elements in the listbox. Useful for composition. | |
loopFocus
|
boolean
|
false
|
Whether to loop the keyboard navigation through the options |
modelValue
|
string[]
|
The model value of the listbox | |
orientation
|
'horizontal' | 'vertical'
|
"horizontal"
|
The orientation of the element. |
scrollToIndexFn
|
(details: listbox.ScrollToIndexDetails) => void
|
Function to scroll to a specific index | |
selectionMode
|
listbox.SelectionMode
|
"single"
|
How multiple selection should behave in the listbox. -
single
: The user can select a single item. -
multiple
: The user can select multiple items without using modifier keys. -
extended
: The user can select multiple items by using modifier keys.
|
selectOnHighlight
|
boolean
|
Whether to select the item when it is highlighted | |
typeahead
|
boolean
|
Whether to enable typeahead on the listbox |
| Prop | Type | Default | Description |
|---|---|---|---|
placeholder
|
string
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
side
|
Side
|
The side where the edge gradient should appear. |
| Prop | Type | Default | Description |
|---|---|---|---|
autoFill
|
boolean
|
false
|
Whether to automatically duplicate content to fill the container. |
defaultPaused
|
boolean
|
false
|
Whether the marquee is paused by default. |
delay
|
number
|
0
|
The delay before the animation starts (in seconds). |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; viewport: string; content: (index: number) => string; }>
|
The ids of the elements in the marquee. Useful for composition. | |
loopCount
|
number
|
0
|
The number of times to loop the animation (0 = infinite). |
paused
|
boolean
|
Whether the marquee is paused. | |
pauseOnInteraction
|
boolean
|
false
|
Whether to pause the marquee on user interaction (hover, focus). |
reverse
|
boolean
|
false
|
Whether to reverse the animation direction. |
side
|
marquee.Side
|
"start"
|
The side/direction the marquee scrolls towards. |
spacing
|
string
|
"1rem"
|
The spacing between marquee items. |
speed
|
number
|
50
|
The speed of the marquee animation in pixels per second. |
translations
|
marquee.IntlTranslations
|
The localized messages to use. |
| Prop | Type | Default | Description |
|---|---|---|---|
columns
|
Number
|
3
|
— |
minColumn
|
String
|
undefined
|
— |
gap
|
String
|
"md"
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
open
|
Boolean
|
false
|
— |
matches
|
Array as PropType
|
() => []
|
— |
active
|
Number
|
0
|
— |
anchor
|
Object as PropType
|
null
|
— |
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
The host field's rung, so the rows keep the field's register. |
| Prop | Type | Default | Description |
|---|---|---|---|
items
|
Array as PropType
|
() => []
|
— |
modelValue
|
String
|
undefined
|
— |
trigger
|
String
|
"@"
|
— |
placeholder
|
String
|
undefined
|
— |
autoresize
|
Boolean
|
false
|
— |
invalid
|
Boolean
|
false
|
— |
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the resting field. |
| Prop | Type | Default | Description |
|---|---|---|---|
closeOnSelect
|
boolean | undefined
|
Whether the menu should be closed when the option is selected. | |
disabled
|
boolean | undefined
|
Whether the menu item is disabled | |
value
|
string
|
The unique value of the menu item option. | |
valueText
|
string | undefined
|
The textual value of the option. Used in typeahead navigation of the menu. If not provided, the text content of the menu item will be used. |
| Prop | Type | Default | Description |
|---|---|---|---|
id
|
string
|
— | |
modelValue
|
string
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the vessel's rows. |
anchorPoint
|
menu.Point
|
The positioning point for the menu. Can be set by the context menu trigger or the button trigger. | |
aria-label
|
string
|
The accessibility label for the menu | |
closeOnSelect
|
boolean
|
true
|
Whether to close the menu when an option is selected |
composite
|
boolean
|
true
|
Whether the menu is a composed with other composite widgets like a combobox or tabs |
defaultHighlightedValue
|
string
|
The initial highlighted value of the menu item when rendered. Use when you don't need to control the highlighted value of the menu item. | |
defaultOpen
|
boolean
|
The initial open state of the menu when rendered. Use when you don't need to control the open state of the menu. | |
defaultTriggerValue
|
string | null
|
The initial trigger value when rendered. Use when you don't need to control the trigger value. | |
highlightedValue
|
string
|
The controlled highlighted value of the menu item. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ trigger: string; contextTrigger: string; content: string; groupLabel(id: string): string; group(id: string): string; positioner: string; arrow: string; }>
|
The ids of the elements in the menu. Useful for composition. | |
loopFocus
|
boolean
|
false
|
Whether to loop the keyboard navigation. |
navigate
|
(details: menu.NavigateDetails) => void
|
Function to navigate to the selected item if it's an anchor element | |
open
|
boolean
|
The controlled open state of the menu | |
positioning
|
menu.PositioningOptions
|
The options used to dynamically position the menu | |
triggerValue
|
string | null
|
The value of the trigger that currently open the menu | |
typeahead
|
boolean
|
true
|
Whether the pressing printable characters should trigger typeahead navigation |
| Prop | Type | Default | Description |
|---|---|---|---|
value
|
string
|
The value that identifies this specific trigger |
| Prop | Type | Default | Description |
|---|---|---|---|
items
|
Array as PropType
|
() => []
|
— |
onSelect
|
Function as PropType<(value: string) => void>
|
undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
value
|
Number
|
The measured value — clamped between min and max. | |
min
|
Number
|
0
|
— |
max
|
Number
|
100
|
— |
level
|
String as PropType<"normal" | "success" | "warning" | "danger">
|
"normal"
|
The pigment the ink rides: primary unless a threshold is crossed. |
label
|
String
|
undefined
|
— |
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the groove ladder — the track's thickness. |
| Prop | Type | Default | Description |
|---|---|---|---|
disabled
|
boolean | undefined
|
Whether the item is disabled | |
value
|
string
|
The value of the item |
| Prop | Type | Default | Description |
|---|---|---|---|
closeDelay
|
number
|
300
|
The delay before the menu closes |
defaultValue
|
string
|
The default value of the navigation menu. Use when you don't want to control the value of the menu. | |
disableClickTrigger
|
boolean
|
Whether to disable the click trigger | |
disableHoverTrigger
|
boolean
|
Whether to disable the hover trigger | |
disablePointerLeaveClose
|
boolean
|
Whether to disable the pointer leave close | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; list: string; item: string; trigger: (value: string) => string; content: (value: string) => string; viewport: string; }>
|
The ids of the elements in the machine. | |
openDelay
|
number
|
200
|
The delay before the menu opens |
orientation
|
'horizontal' | 'vertical'
|
"horizontal"
|
The orientation of the navigation menu |
translations
|
navigationMenu.IntlTranslations
|
Specifies the localized strings that identifies the accessibility elements and their states | |
value
|
string
|
The controlled value of the navigation menu |
| Prop | Type | Default | Description |
|---|---|---|---|
align
|
"start" | "center" | "end"
|
Placement of the viewport for css variables
(--viewport-x, --viewport-y)
. @defaultValue 'center'
|
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the field and its stepper. |
allowMouseWheel
|
boolean
|
Whether to allow mouse wheel to change the value | |
allowOverflow
|
boolean
|
true
|
Whether to allow the value overflow the min/max range |
clampValueOnBlur
|
boolean
|
true
|
Whether to clamp the value when the input loses focus (blur) |
defaultValue
|
string
|
The initial value of the input when rendered. Use when you don't need to control the value of the input. | |
disabled
|
boolean
|
Whether the number input is disabled. | |
focusInputOnChange
|
boolean
|
true
|
Whether to focus input when the value changes |
form
|
string
|
The associate form of the input element. | |
formatOptions
|
Intl.NumberFormatOptions
|
The options to pass to the
Intl.NumberFormat
constructor
|
|
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; label: string; input: string; incrementTrigger: string; decrementTrigger: string; scrubber: string; }>
|
The ids of the elements in the number input. Useful for composition. | |
inputMode
|
'text' | 'tel' | 'numeric' | 'decimal'
|
"decimal"
|
Hints at the type of data that might be entered by the user. It also determines the type of keyboard shown to the user on mobile devices |
invalid
|
boolean
|
Whether the number input value is invalid. | |
largeStep
|
number
|
10 * step
|
The amount to increment or decrement the value by when the shift key is held |
locale
|
string
|
"en-US"
|
The current locale. Based on the BCP 47 definition. |
max
|
number
|
Number.MAX_SAFE_INTEGER
|
The maximum value of the number input |
min
|
number
|
Number.MIN_SAFE_INTEGER
|
The minimum value of the number input |
modelValue
|
string
|
The v-model value of the number input | |
name
|
string
|
The name attribute of the number input. Useful for form submission. | |
pattern
|
string
|
"[0-9]*(.[0-9]+)?"
|
The pattern used to check the element's value against |
readOnly
|
boolean
|
Whether the number input is readonly | |
required
|
boolean
|
Whether the number input is required | |
smallStep
|
number
|
step / 10
|
The amount to increment or decrement the value by when the alt key is held |
spinOnPress
|
boolean
|
true
|
Whether to spin the value when the increment/decrement button is pressed |
step
|
number
|
1
|
The amount to increment or decrement the value by |
translations
|
numberInput.IntlTranslations
|
Specifies the localized strings that identifies the accessibility elements and their states |
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue
|
Array as PropType
|
The rows in their current order — the value is the order. | |
options
|
Array as PropType
|
Every row the ledger knows, in no particular order. | |
label
|
String
|
undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
index
|
number
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
type
|
"page"
|
— | |
value
|
number
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder every page seal shares. |
count
|
number
|
Total number of data items | |
defaultPage
|
number
|
1
|
The initial active page when rendered. Use when you don't need to control the active page of the pagination. |
defaultPageSize
|
number
|
10
|
The initial number of data items per page when rendered. Use when you don't need to control the page size of the pagination. |
getPageUrl
|
(details: pagination.PageUrlDetails) => string
|
Function to generate href attributes for pagination links. Only used when
type
is set to "link".
|
|
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; ellipsis(index: number): string; prevTrigger: string; nextTrigger: string; item(page: number): string; }>
|
The ids of the elements in the accordion. Useful for composition. | |
page
|
number
|
The controlled active page | |
pageSize
|
number
|
The controlled number of data items per page | |
siblingCount
|
number
|
1
|
Number of pages to show beside active page |
translations
|
pagination.IntlTranslations
|
Specifies the localized strings that identifies the accessibility elements and their states | |
type
|
'button' | 'link'
|
"button"
|
The type of the trigger element |
| Prop | Type | Default | Description |
|---|---|---|---|
fallback
|
string
|
The fallback content to display when the password is not visible. |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the field and its eye. |
autoComplete
|
passwordInput.Props['autoComplete']
|
The autocomplete attribute for the input | |
defaultVisible
|
boolean
|
Whether the password is visible by default | |
disabled
|
boolean
|
Whether the input is disabled | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
passwordInput.Props['ids']
|
The ids of the elements in the password input. Useful for composition. | |
ignorePasswordManagers
|
boolean
|
Whether to ignore password managers | |
invalid
|
boolean
|
Whether the input is in an invalid state | |
name
|
string
|
The name attribute for the input | |
readOnly
|
boolean
|
Whether the input is read-only | |
required
|
boolean
|
Whether the input is required | |
translations
|
passwordInput.IntlTranslations
|
Specifies the localized strings that identifies the accessibility elements and their states | |
visible
|
boolean
|
Whether the password is visible |
| Prop | Type | Default | Description |
|---|---|---|---|
index
|
number
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder each seal stands on. |
autoFocus
|
boolean
|
Whether to auto-focus the first input. | |
autoSubmit
|
boolean
|
Whether to auto-submit the owning form when all inputs are filled. | |
blurOnComplete
|
boolean
|
Whether to blur the input when the value is complete | |
count
|
number
|
The number of inputs to render to improve SSR aria attributes. This will be required in next major version. | |
defaultValue
|
string[]
|
The initial value of the the pin input when rendered. Use when you don't need to control the value of the pin input. | |
disabled
|
boolean
|
Whether the inputs are disabled | |
form
|
string
|
The associate form of the underlying input element. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; hiddenInput: string; label: string; control: string; input(id: string): string; }>
|
The ids of the elements in the pin input. Useful for composition. | |
invalid
|
boolean
|
Whether the pin input is in the invalid state | |
mask
|
boolean
|
If
true
, the input's value will be masked just like
type=password
|
|
modelValue
|
string[]
|
The v-model value of the pin input | |
name
|
string
|
The name of the input element. Useful for form submission. | |
otp
|
boolean
|
If
true
, the pin input component signals to its fields that they should use
autocomplete="one-time-code"
.
|
|
pattern
|
string
|
The regular expression that the user-entered input value is checked against. | |
placeholder
|
string
|
"○"
|
The placeholder text for the input |
readOnly
|
boolean
|
Whether the pin input is in the valid state | |
required
|
boolean
|
Whether the pin input is required | |
sanitizeValue
|
(value: string) => string
|
Function to sanitize pasted values before validation. Useful for stripping dashes, spaces, or other formatting. | |
selectOnFocus
|
boolean
|
Whether to select input value when input is focused | |
translations
|
pinInput.IntlTranslations
|
Specifies the localized strings that identifies the accessibility elements and their states | |
type
|
'alphanumeric' | 'numeric' | 'alphabetic'
|
"numeric"
|
The type of value the pin-input should allow |
| Prop | Type | Default | Description |
|---|---|---|---|
message
|
String
|
The question the reader is answering. | |
confirmText
|
String
|
"Confirm"
|
— |
cancelText
|
String
|
"Cancel"
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
autoFocus
|
boolean
|
true
|
Whether to automatically set focus on the first focusable content within the popover when opened. |
closeOnEscape
|
boolean
|
true
|
Whether to close the popover when the escape key is pressed. |
closeOnInteractOutside
|
boolean
|
true
|
Whether to close the popover when the user clicks outside of the popover. |
defaultOpen
|
boolean
|
The initial open state of the popover when rendered. Use when you don't need to control the open state of the popover. | |
defaultTriggerValue
|
string | null
|
The initial trigger value when rendered. Use when you don't need to control the trigger value. | |
finalFocusEl
|
() => HTMLElement | null
|
Element to receive focus when the popover is closed | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ anchor: string; trigger: string; content: string; title: string; description: string; closeTrigger: string; positioner: string; arrow: string; }>
|
The ids of the elements in the popover. Useful for composition. | |
initialFocusEl
|
() => HTMLElement | null
|
The element to focus on when the popover is opened. | |
modal
|
boolean
|
false
|
Whether the popover should be modal. When set to
true
: - interaction with outside elements will be disabled - only popover content will be visible to screen readers - scrolling is blocked - focus is trapped within the popover
|
open
|
boolean
|
The controlled open state of the popover | |
persistentElements
|
(() => Element | null)[]
|
Returns the persistent elements that: - should not have pointer-events disabled - should not trigger the dismiss event | |
portalled
|
boolean
|
true
|
Whether the popover is portalled. This will proxy the tabbing behavior regardless of the DOM position of the popover content. |
positioning
|
popover.PositioningOptions
|
The user provided options used to position the popover content | |
restoreFocus
|
boolean
|
true
|
Whether to restore focus to the element that had focus before the popover was opened |
translations
|
popover.IntlTranslations
|
Specifies the localized strings that identifies the accessibility elements and their states | |
triggerValue
|
string | null
|
The value of the trigger that currently open the popover |
| Prop | Type | Default | Description |
|---|---|---|---|
value
|
string | undefined
|
The value that identifies this specific trigger |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the groove ladder — the track's thickness. |
defaultValue
|
number | null
|
50
|
The initial value of the progress bar when rendered. Use when you don't need to control the value of the progress bar. |
formatOptions
|
Intl.NumberFormatOptions
|
{ style: "percent" }
|
The options to use for formatting the value. |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; track: string; label: string; circle: string; }>
|
The ids of the elements in the progress bar. Useful for composition. | |
locale
|
string
|
"en-US"
|
The locale to use for formatting the value. |
max
|
number
|
100
|
The maximum allowed value of the progress bar. |
min
|
number
|
0
|
The minimum allowed value of the progress bar. |
modelValue
|
number | null
|
The v-model value of the progress | |
orientation
|
'horizontal' | 'vertical'
|
"horizontal"
|
The orientation of the element. |
translations
|
progress.IntlTranslations
|
The localized messages to use. |
| Prop | Type | Default | Description |
|---|---|---|---|
state
|
ProgressState
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
segments
|
Array as PropType
|
— | |
max
|
Number
|
undefined
|
— |
showLegend
|
Boolean
|
true
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
fileName
|
string
|
The name of the file. | |
mimeType
|
DataUrlType
|
The mime type of the image. | |
quality
|
number | undefined
|
The quality of the image. |
| Prop | Type | Default | Description |
|---|---|---|---|
defaultValue
|
string
|
The initial value to encode when rendered. Use when you don't need to control the value of the qr code. | |
encoding
|
qrcode.QrCodeGenerateOptions
|
The qr code encoding options. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; frame: string; }>
|
The element ids. | |
modelValue
|
string
|
The v-model value of the qr code | |
pixelSize
|
number
|
The pixel size of the qr code. |
| Prop | Type | Default | Description |
|---|---|---|---|
disabled
|
boolean | undefined
|
— | |
invalid
|
boolean | undefined
|
— | |
value
|
string
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung for the dial; the chosen dot rides it. |
defaultValue
|
string | null
|
The initial value of the checked radio when rendered. Use when you don't need to control the value of the radio group. | |
disabled
|
boolean
|
If
true
, the radio group will be disabled
|
|
form
|
string
|
The associate form of the underlying input. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; label: string; indicator: string; item(value: string): string; itemLabel(value: string): string; itemControl(value: string): string; itemHiddenInput(value: string): string; }>
|
The ids of the elements in the radio. Useful for composition. | |
invalid
|
boolean
|
Whether the radio group is invalid | |
modelValue
|
string | null
|
The v-model value of the radio group | |
name
|
string
|
The name of the input fields in the radio (Useful for form submission). | |
orientation
|
'horizontal' | 'vertical'
|
Orientation of the radio group | |
readOnly
|
boolean
|
Whether the checkbox is read-only | |
required
|
boolean
|
Whether the radio group is required |
| Prop | Type | Default | Description |
|---|---|---|---|
index
|
number
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder every seal stands on. |
allowHalf
|
boolean
|
Whether to allow half stars. | |
autoFocus
|
boolean
|
Whether to autofocus the rating. | |
count
|
number
|
5
|
The total number of ratings. |
defaultValue
|
number
|
The initial value of the rating when rendered. Use when you don't need to control the value of the rating. | |
disabled
|
boolean
|
Whether the rating is disabled. | |
form
|
string
|
The associate form of the underlying input element. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; label: string; hiddenInput: string; control: string; item(id: string): string; }>
|
The ids of the elements in the rating. Useful for composition. | |
modelValue
|
number
|
The v-model value of the rating group | |
name
|
string
|
The name attribute of the rating element (used in forms). | |
readOnly
|
boolean
|
Whether the rating is readonly. | |
required
|
boolean
|
Whether the rating is required. | |
translations
|
ratingGroup.IntlTranslations
|
Specifies the localized strings that identifies the accessibility elements and their states |
| Prop | Type | Default | Description |
|---|---|---|---|
status
|
String as PropType
|
"info"
|
The verdict the operation returned; the fixed pigments speak it. |
| Prop | Type | Default | Description |
|---|---|---|---|
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; viewport: string; content: string; scrollbar: string; thumb: string; }>
|
The ids of the scroll area elements |
| Prop | Type | Default | Description |
|---|---|---|---|
orientation
|
Orientation
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
disabled
|
boolean | undefined
|
— | |
invalid
|
boolean | undefined
|
— | |
value
|
string
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the segments. The family keeps its compact register, so the rungs sit one notch below the global ladder — the default md rests at the small height. |
orientation
|
String as PropType<"horizontal" | "vertical">
|
"horizontal"
|
The tray reads as one row of seals; the underlying machine defaults to a vertical stack, so the horizontal row is ours to assert. |
defaultValue
|
string
|
The initial value of the segment group when it is first rendered. Use when you do not need to control the state of the segment group. | |
disabled
|
boolean
|
If
true
, the segment group will be disabled
|
|
form
|
string
|
The associate form of the underlying input. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; label: string; indicator: string; item(value: string): string; itemLabel(value: string): string; itemControl(value: string): string; itemHiddenInput(value: string): string; }>
|
The ids of the elements in the radio. Useful for composition. | |
modelValue
|
string | null
|
The v-model value of the segment group | |
name
|
string
|
The name of the input fields in the radio (Useful for form submission). | |
readOnly
|
boolean
|
Whether the segment group is read-only |
| Prop | Type | Default | Description |
|---|---|---|---|
item
|
T
|
The item to render | |
persistFocus
|
boolean | undefined
|
Whether hovering outside should clear the highlighted state |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the trigger. |
autoComplete
|
string
|
The autocomplete attribute for the hidden select. Enables browser autofill (e.g. "address-level1" for state). | |
closeOnSelect
|
boolean
|
true
|
Whether the select should close after an item is selected |
collection
|
ListCollection
|
The collection of items | |
composite
|
boolean
|
true
|
Whether the select is a composed with other composite widgets like tabs or combobox |
defaultHighlightedValue
|
string
|
The initial value of the highlighted item when opened. Use when you don't need to control the highlighted value of the select. | |
defaultOpen
|
boolean
|
Whether the select's open state is controlled by the user | |
defaultValue
|
string[]
|
The initial default value of the select when rendered. Use when you don't need to control the value of the select. | |
deselectable
|
boolean
|
Whether the value can be cleared by clicking the selected item. Note: this is only applicable for single selection | |
disabled
|
boolean
|
Whether the select is disabled | |
form
|
string
|
The associate form of the underlying select. | |
highlightedValue
|
string
|
The controlled key of the highlighted item | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; content: string; control: string; trigger: string; clearTrigger: string; label: string; hiddenSelect: string; positioner: string; item(id: string | number): string; itemGroup(id: string | number): string; itemGroupLabel(id: string | number): string; }>
|
The ids of the elements in the select. Useful for composition. | |
invalid
|
boolean
|
Whether the select is invalid | |
loopFocus
|
boolean
|
false
|
Whether to loop the keyboard navigation through the options |
modelValue
|
string[]
|
The model value of the select | |
multiple
|
boolean
|
Whether to allow multiple selection | |
name
|
string
|
The
name
attribute of the underlying select.
|
|
open
|
boolean
|
Whether the select menu is open | |
positioning
|
select.PositioningOptions
|
The positioning options of the menu. | |
readOnly
|
boolean
|
Whether the select is read-only | |
required
|
boolean
|
Whether the select is required | |
scrollToIndexFn
|
(details: select.ScrollToIndexDetails) => void
|
Function to scroll to a specific index | |
translations
|
select.IntlTranslations
|
Specifies the localized strings that identifies the accessibility elements and their states |
| Prop | Type | Default | Description |
|---|---|---|---|
placeholder
|
string
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
orientation
|
String
|
"horizontal"
|
— |
decorative
|
Boolean
|
false
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
value
|
string
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
defaultPaths
|
string[]
|
The default paths of the signature pad. | |
disabled
|
boolean
|
Whether the signature pad is disabled. | |
drawing
|
signaturePad.DrawingOptions
|
'{ size: 2, simulatePressure: true }'
|
The drawing options. |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; control: string; hiddenInput: string; label: string; }>
|
The ids of the signature pad elements. Useful for composition. | |
name
|
string
|
The name of the signature pad. Useful for form submission. | |
paths
|
string[]
|
The controlled paths of the signature pad. | |
readOnly
|
boolean
|
Whether the signature pad is read-only. | |
required
|
boolean
|
Whether the signature pad is required. | |
translations
|
signaturePad.IntlTranslations
|
The translations of the signature pad. Useful for internationalization. |
| Prop | Type | Default | Description |
|---|---|---|---|
value
|
number
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the part-size ladder for the thumb seal. |
aria-label
|
string[]
|
The aria-label of each slider thumb. Useful for providing an accessible name to the slider | |
aria-labelledby
|
string[]
|
The
id
of the elements that labels each slider thumb. Useful for providing an accessible name to the slider
|
|
defaultValue
|
number[]
|
The initial value of the slider when rendered. Use when you don't need to control the value of the slider. | |
dir
|
'ltr' | 'rtl'
|
"ltr"
|
The document's text/writing direction. |
disabled
|
boolean
|
Whether the slider is disabled | |
form
|
string
|
The associate form of the underlying input element. | |
getAriaValueText
|
(details: slider.ValueTextDetails) => string
|
Function that returns a human readable value for the slider thumb | |
getRootNode
|
() => ShadowRoot | Document | Node
|
A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; thumb(index: number): string; hiddenInput(index: number): string; control: string; track: string; range: string; label: string; valueText: string; marker(index: number): string; }>
|
The ids of the elements in the slider. Useful for composition. | |
invalid
|
boolean
|
Whether the slider is invalid | |
largeStep
|
number
|
10 * step
|
The amount to increment or decrement the value by when the shift key is held, or the page up/down keys are pressed |
max
|
number
|
100
|
The maximum value of the slider |
min
|
number
|
0
|
The minimum value of the slider |
minStepsBetweenThumbs
|
number
|
0
|
The minimum permitted steps between multiple thumbs. |
modelValue
|
number[]
|
The v-model value of the slider | |
name
|
string
|
The name associated with each slider thumb (when used in a form) | |
orientation
|
'vertical' | 'horizontal'
|
"horizontal"
|
The orientation of the slider |
origin
|
'start' | 'center'
|
"start"
|
The origin of the slider range - "start": Useful when the value represents an absolute value - "center": Useful when the value represents an offset (relative) |
readOnly
|
boolean
|
Whether the slider is read-only | |
step
|
number
|
1
|
The step value of the slider |
thumbAlignment
|
'center' | 'contain'
|
"contain"
|
The alignment of the slider thumb relative to the track -
center
: the thumb will extend beyond the bounds of the slider track. -
contain
: the thumb will be contained within the bounds of the track.
|
thumbCollisionBehavior
|
'none' | 'push' | 'swap'
|
"none"
|
How thumbs behave when they collide during pointer interactions -
none
: Thumbs cannot move past each other -
push
: Thumbs push each other -
swap
: Thumbs swap places
|
thumbSize
|
{ width: number; height: number; }
|
The slider thumbs dimensions |
| Prop | Type | Default | Description |
|---|---|---|---|
index
|
number
|
— | |
name
|
string | undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control ladder for the wheel's diameter. |
| Prop | Type | Default | Description |
|---|---|---|---|
label
|
String
|
The main action's label. | |
items
|
Array as PropType
|
() => []
|
The dropdown's entries. |
variant
|
String
|
"solid"
|
How both halves rest; the arrow always reads as one control with the main button. |
tone
|
String
|
"ink"
|
The pigment the halves are inked with; ink is the solemn default, and the fixed pigments speak for their meaning. |
size
|
String
|
"md"
|
One rung of the control-height ladder for both halves. |
disabled
|
Boolean
|
false
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
id
|
PanelId
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
disabled
|
boolean | undefined
|
— | |
id
|
ResizeTriggerId
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
defaultSize
|
number[]
|
The initial size of the panels when rendered. Use when you don't need to control the size of the panels. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; resizeTrigger(id: string): string; label(id: string): string; panel(id: string | number): string; }>
|
The ids of the elements in the splitter. Useful for composition. | |
keyboardResizeBy
|
number
|
The number of pixels to resize the panel by when the keyboard is used. | |
nonce
|
string
|
The nonce for the injected splitter cursor stylesheet. | |
orientation
|
'horizontal' | 'vertical'
|
"horizontal"
|
The orientation of the splitter. Can be
horizontal
or
vertical
|
panels
|
splitter.PanelData[]
|
The size constraints of the panels. | |
registry
|
splitter.SplitterRegistry
|
The splitter registry to use for multi-drag support. | |
size
|
number[]
|
The controlled size data of the panels |
| Prop | Type | Default | Description |
|---|---|---|---|
radius
|
String
|
undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
direction
|
String
|
"column"
|
— |
gap
|
String
|
"md"
|
— |
wrap
|
Boolean
|
false
|
— |
align
|
String
|
undefined
|
— |
justify
|
String
|
undefined
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
direction
|
String as PropType<"up" | "down" | "flat">
|
"flat"
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
index
|
number
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
index
|
number
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder every indicator stands on. |
count
|
number
|
The total number of steps | |
defaultStep
|
number
|
The initial value of the stepper when rendered. Use when you don't need to control the value of the stepper. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
steps.ElementIds
|
The custom ids for the stepper elements | |
isStepSkippable
|
(index: number) => boolean
|
Function that returns whether a step can be skipped | |
isStepValid
|
(index: number) => boolean
|
Function that returns whether a step is valid | |
linear
|
boolean
|
If
true
, the stepper requires the user to complete the steps in order
|
|
orientation
|
'horizontal' | 'vertical'
|
"horizontal"
|
The orientation of the stepper |
step
|
number
|
The controlled value of the stepper |
| Prop | Type | Default | Description |
|---|---|---|---|
type
|
'on' | 'off'
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
lazyMount
|
boolean
|
Whether to enable lazy mounting. | |
swap
|
boolean
|
Whether the swap is in the "on" state. | |
unmountOnExit
|
boolean
|
Whether to unmount on exit. |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung for the thumb; the track travels with it. |
checked
|
boolean
|
The controlled checked state of the switch | |
defaultChecked
|
boolean
|
The initial checked state of the switch when rendered. Use when you don't need to control the checked state of the switch. | |
disabled
|
boolean
|
Whether the switch is disabled. | |
form
|
string
|
The id of the form that the switch belongs to | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; hiddenInput: string; control: string; label: string; thumb: string; }>
|
The ids of the elements in the switch. Useful for composition. | |
invalid
|
boolean
|
If
true
, the switch is marked as invalid.
|
|
label
|
string
|
Specifies the localized strings that identifies the accessibility elements and their states | |
name
|
string
|
The name of the input field in a switch (Useful for form submission). | |
readOnly
|
boolean
|
Whether the switch is read-only | |
required
|
boolean
|
If
true
, the switch input is marked as required,
|
|
value
|
string
|
"on"
|
The value of checkbox input. Useful for form submission. |
| Prop | Type | Default | Description |
|---|---|---|---|
data
|
Array as PropType
|
— | |
columns
|
Array as PropType
|
— | |
selectable
|
unknown
|
— | |
sortable
|
Boolean
|
true
|
— |
filterable
|
unknown
|
— | |
showToolbar
|
Boolean
|
true
|
— |
tree
|
unknown
|
— | |
merge
|
Array as PropType
|
— | |
pinStart
|
Array as PropType
|
— | |
pinEnd
|
Array as PropType
|
— | |
virtual
|
unknown
|
— | |
rowHeight
|
Number
|
40
|
— |
paginated
|
unknown
|
— | |
pageSize
|
Number
|
10
|
— |
pageSizeOptions
|
Array as PropType
|
() => [10, 20, 50]
|
— |
stickyFooter
|
unknown
|
— | |
initialSorting
|
Array as PropType
|
— | |
globalFilterPlaceholder
|
String
|
"Filter rows"
|
— |
emptyText
|
String
|
"No rows"
|
— |
reorderable
|
unknown
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the tab rows. |
variant
|
String as PropType<"line" | "card">
|
"line"
|
The register: a ruled strip, or each selection lifted into a card. |
orientation
|
String as PropType<"horizontal" | "vertical">
|
"horizontal"
|
Which rail the rule rides: a strip across, or a rail down. |
activationMode
|
'manual' | 'automatic'
|
"automatic"
|
The activation mode of the tabs. Can be
manual
or
automatic
-
manual
: Tabs are activated when clicked or press
enter
key. -
automatic
: Tabs are activated when receiving focus
|
composite
|
boolean
|
Whether the tab is composite | |
defaultValue
|
string
|
The initial selected tab value when rendered. Use when you don't need to control the selected tab value. | |
deselectable
|
boolean
|
Whether the active tab can be deselected when clicking on it. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; trigger: (id: string) => string; content: (id: string) => string; list: string; indicator: string; }>
|
The ids of the elements in the tabs. Useful for composition. | |
loopFocus
|
boolean
|
true
|
Whether the keyboard navigation will loop from last tab to first, and vice versa. |
modelValue
|
string
|
The v-model value of the tabs | |
navigate
|
(details: tabs.NavigateDetails) => void
|
Function to navigate to the selected tab when clicking on it. Useful if tab triggers are anchor elements. | |
translations
|
tabs.IntlTranslations
|
Specifies the localized strings that identifies the accessibility elements and their states |
| Prop | Type | Default | Description |
|---|---|---|---|
disabled
|
boolean | undefined
|
— | |
index
|
string | number
|
— | |
value
|
string
|
— |
| Prop | Type | Default | Description |
|---|---|---|---|
size
|
String as PropType<"sm" | "md" | "lg">
|
"md"
|
One rung of the control-height ladder for the vessel at rest. |
addOnPaste
|
boolean
|
false
|
Whether to add a tag when you paste values into the tag input |
allowDuplicates
|
boolean
|
false
|
Whether to allow duplicate tags |
allowOverflow
|
boolean
|
Whether to allow tags to exceed max. In this case, we'll attach
data-invalid
to the root
|
|
autoFocus
|
boolean
|
Whether the input should be auto-focused | |
blurBehavior
|
'clear' | 'add'
|
The behavior of the tags input when the input is blurred -
"add"
: add the input value as a new tag -
"clear"
: clear the input value
|
|
defaultInputValue
|
string
|
The initial tag input value when rendered. Use when you don't need to control the tag input value. | |
defaultValue
|
string[]
|
The initial tag value when rendered. Use when you don't need to control the tag value. | |
delimiter
|
string | RegExp
|
","
|
The character that serves has: - event key to trigger the addition of a new tag - character used to split tags when pasting into the input |
disabled
|
boolean
|
Whether the tags input should be disabled | |
editable
|
boolean
|
true
|
Whether a tag can be edited after creation, by pressing
Enter
or double clicking.
|
form
|
string
|
The associate form of the underlying input element. | |
id
|
string
|
The unique identifier of the machine. | |
ids
|
Partial<{ root: string; input: string; hiddenInput: string; clearBtn: string; label: string; control: string; item(opts: tagsInput.ItemProps): string; itemDeleteTrigger(opts: tagsInput.ItemProps): string; itemInput(opts: tagsInput.ItemProps): string; }>
|
The ids of the elements in the tags input. Useful for composition. | |
inputValue
|
string
|
The controlled tag input's value | |
invalid
|
boolean
|
Whether the tags input is invalid | |
max
|
number
|
Infinity
|
The max number of tags |
maxLength
|
number
|
The max length of the input. | |
modelValue
|
string[]
|
The v-model value of the tags input | |
name
|
string
|
The name attribute for the input. Useful for form submissions | |
placeholder
|
string
|
The placeholder text for the input when there are no tags | |
readOnly
|
boolean
|
Whether the tags input should be read-only | |
required
|
boolean
|
Whether the tags input is required | |
sanitizeValue
|
(value: string) => string
|
Function to sanitize the tag value before adding it | |
translations
|
tagsInput.IntlTranslations
|
Specifies the localized strings that identifies the accessibility elements and their states | |
validate
|
(details: tagsInput.ValidateArgs) => boolean
|
Returns a boolean that determines whether a tag can be added. Useful for preventing duplicates or invalid tag values. |
| Prop | Type | Default | Description |
|---|---|---|---|
lines
|
Array as PropType
|
() => []
|
The transcript, oldest line first. |
prompt
|
String
|
"$"
|
The sigil at the head of the entry line. |
placeholder
|
String
|
undefined
|
— |
label
|
String
|
undefined
|
— |