@askrjs/ui
Exports from the declarations published in @askrjs/ui. Signatures reflect the published artifact.
Exports
This entrypoint publishes 432 exports. Use the anchored symbol rows for direct links. Type-only exports are labeled separately from runtime values.
Accordiontype
Accordion: (props: AccordionProps) => JSX.ElementRenders a part of accordion.
AccordionContenttype
AccordionContent: { (props: AccordionContentProps): JSX.Element | null; (props: AccordionContentAsChildProps): JSX.Element | null; }Renders the accordion-content part of accordion with role="region".
Supports polymorphic rendering via asChild.
AccordionContentAsChildPropstype
AccordionContentAsChildProps: BoxAsChildProps & AccordionContentOwnPropsProps for the asChild (polymorphic) rendering of Accordion Content.
asChild- asChild: true;
children- children: JSXElement;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<Element>;
AccordionContentOwnPropstype
AccordionContentOwnProps: {
forceMount?: boolean;
}Own props for Accordion Content, before merging with native element attributes.
forceMount- forceMount?: boolean | undefined;
AccordionContentPropstype
AccordionContentProps: BoxProps<'div', HTMLDivElement> & AccordionContentOwnPropsProps for Accordion Content.
asChild- asChild?: false | undefined;
children- children?: unknown;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
AccordionHeadertype
AccordionHeader: { (props: AccordionHeaderProps): JSX.Element; (props: AccordionHeaderAsChildProps): JSX.Element; }Renders the accordion-header part of accordion.
Supports polymorphic rendering via asChild.
AccordionHeaderAsChildPropstype
AccordionHeaderAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Accordion Header.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
AccordionHeaderPropstype
AccordionHeaderProps: BoxProps<'h3', HTMLHeadingElement>Props for Accordion Header.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLHeadingElement>;
AccordionItemtype
AccordionItem: (props: AccordionItemProps) => JSX.ElementRenders the accordion-item part of accordion.
AccordionItemOwnPropstype
AccordionItemOwnProps: {
children?: unknown;
value: string;
disabled?: boolean;
}Own props for Accordion Item, before merging with native element attributes.
children- children?: unknown;
disabled- disabled?: boolean | undefined;
value- value: string;
AccordionItemPropstype
AccordionItemProps: BoxProps<'div', HTMLDivElement> & AccordionItemOwnPropsProps for Accordion Item.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
value- value: string;
AccordionMultiplePropstype
AccordionMultipleProps: BoxProps<'div', HTMLDivElement> & AccordionSharedOwnProps & {
type: 'multiple';
value?: string[];
defaultValue?: string[];
onValueChange?: (value: string[]) => void;
}Props for Accordion Multiple.
asChild- asChild?: false | undefined;
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
collapsible- collapsible?: boolean | undefined;
defaultValue- defaultValue?: string[] | undefined;
id- id?: string | undefined;
loop- loop?: boolean | undefined;
onValueChange- onValueChange?: ((value: string[]) => void) | undefined;
orientation- orientation?: AccordionOrientation | undefined;
ref- ref?: Ref<HTMLDivElement>;
type- type: "multiple";
value- value?: string[] | undefined;
AccordionOrientationtype
AccordionOrientation: 'vertical' | 'horizontal'Accordion Orientation.
AccordionPropstype
AccordionProps: AccordionSingleProps | AccordionMultiplePropsProps for Accordion.
asChild- asChild?: false | undefined;
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
collapsible- collapsible?: boolean | undefined;
defaultValue- defaultValue?: string | string[] | undefined;
id- id?: string | undefined;
loop- loop?: boolean | undefined;
onValueChange- onValueChange?: ((value: string[]) => void) | ((value: string) => void) | undefined;
orientation- orientation?: AccordionOrientation | undefined;
ref- ref?: Ref<HTMLDivElement>;
type- type?: "single" | "multiple" | undefined;
value- value?: string | string[] | undefined;
AccordionSinglePropstype
AccordionSingleProps: BoxProps<'div', HTMLDivElement> & AccordionSharedOwnProps & {
type?: 'single';
value?: string;
defaultValue?: string;
onValueChange?: (value: string) => void;
}Props for Accordion Single.
asChild- asChild?: false | undefined;
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
collapsible- collapsible?: boolean | undefined;
defaultValue- defaultValue?: string | undefined;
id- id?: string | undefined;
loop- loop?: boolean | undefined;
onValueChange- onValueChange?: ((value: string) => void) | undefined;
orientation- orientation?: AccordionOrientation | undefined;
ref- ref?: Ref<HTMLDivElement>;
type- type?: "single" | undefined;
value- value?: string | undefined;
AccordionTriggertype
AccordionTrigger: { (props: AccordionTriggerProps): JSX.Element; (props: AccordionTriggerAsChildProps): JSX.Element; }Renders the accordion-trigger part of accordion.
Supports polymorphic rendering via asChild.
AccordionTriggerAsChildPropstype
AccordionTriggerAsChildProps: ButtonLikeAsChildPropsProps for the asChild (polymorphic) rendering of Accordion Trigger.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
type- type?: undefined;
AccordionTriggerPropstype
AccordionTriggerProps: ButtonLikeProps<'button', HTMLButtonElement>Props for Accordion Trigger.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
type- type?: "button" | "submit" | "reset" | undefined;
AlertDialogtype
AlertDialog: (props: AlertDialogProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementRenders a part of alert-dialog.
AlertDialogActiontype
DialogClose: { (props: DialogCloseProps): JSX.Element; (props: DialogCloseAsChildProps): JSX.Element; }Renders the dialog-close part of dialog.
Supports polymorphic rendering via asChild.
AlertDialogActionAsChildPropstype
AlertDialogActionAsChildProps: DialogCloseAsChildPropsProps for the asChild (polymorphic) rendering of Alert Dialog Action.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
type- type?: undefined;
AlertDialogActionPropstype
AlertDialogActionProps: DialogClosePropsProps for Alert Dialog Action.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
type- type?: "button" | "submit" | "reset" | undefined;
AlertDialogCanceltype
DialogClose: { (props: DialogCloseProps): JSX.Element; (props: DialogCloseAsChildProps): JSX.Element; }Renders the dialog-close part of dialog.
Supports polymorphic rendering via asChild.
AlertDialogCancelAsChildPropstype
AlertDialogCancelAsChildProps: DialogCloseAsChildPropsProps for the asChild (polymorphic) rendering of Alert Dialog Cancel.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
type- type?: undefined;
AlertDialogCancelPropstype
AlertDialogCancelProps: DialogClosePropsProps for Alert Dialog Cancel.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
type- type?: "button" | "submit" | "reset" | undefined;
AlertDialogContenttype
AlertDialogContent: (props: AlertDialogContentProps | AlertDialogContentAsChildProps) => JSX.ElementRenders a part of alert-dialog.
Supports polymorphic rendering via asChild.
AlertDialogContentAsChildPropstype
AlertDialogContentAsChildProps: DialogContentAsChildPropsProps for the asChild (polymorphic) rendering of Alert Dialog Content.
asChild- asChild: true;
children- children: JSXElement;
forceMount- forceMount?: boolean | undefined;
onDismiss- onDismiss?: (() => void) | undefined;
onEscapeKeyDown- onEscapeKeyDown?: ((event: KeyboardEvent) => void) | undefined;
onInteractOutside- onInteractOutside?: ((event: Event) => void) | undefined;
onPointerDownOutside- onPointerDownOutside?: ((event: PointerEvent) => void) | undefined;
ref- ref?: Ref<Element>;
restoreFocus- Explicit focus target used when a controlled dialog has no persistent trigger.
role- role?: "dialog" | "alertdialog" | undefined;
AlertDialogContentOwnPropstype
AlertDialogContentOwnProps: DialogContentOwnPropsOwn props for Alert Dialog Content, before merging with native element attributes.
forceMount- forceMount?: boolean | undefined;
onDismiss- onDismiss?: (() => void) | undefined;
onEscapeKeyDown- onEscapeKeyDown?: ((event: KeyboardEvent) => void) | undefined;
onInteractOutside- onInteractOutside?: ((event: Event) => void) | undefined;
onPointerDownOutside- onPointerDownOutside?: ((event: PointerEvent) => void) | undefined;
restoreFocus- Explicit focus target used when a controlled dialog has no persistent trigger.
role- role?: "dialog" | "alertdialog" | undefined;
AlertDialogContentPropstype
AlertDialogContentProps: DialogContentPropsProps for Alert Dialog Content.
asChild- asChild?: false | undefined;
children- children?: unknown;
forceMount- forceMount?: boolean | undefined;
onDismiss- onDismiss?: (() => void) | undefined;
onEscapeKeyDown- onEscapeKeyDown?: ((event: KeyboardEvent) => void) | undefined;
onInteractOutside- onInteractOutside?: ((event: Event) => void) | undefined;
onPointerDownOutside- onPointerDownOutside?: ((event: PointerEvent) => void) | undefined;
ref- ref?: Ref<HTMLDivElement>;
restoreFocus- Explicit focus target used when a controlled dialog has no persistent trigger.
role- role?: "dialog" | "alertdialog" | undefined;
AlertDialogDescriptiontype
DialogDescription: { (props: DialogDescriptionProps): JSX.Element; (props: DialogDescriptionAsChildProps): JSX.Element; }Renders the dialog-description part of dialog.
Supports polymorphic rendering via asChild.
AlertDialogDescriptionAsChildPropstype
AlertDialogDescriptionAsChildProps: DialogDescriptionAsChildPropsProps for the asChild (polymorphic) rendering of Alert Dialog Description.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
AlertDialogDescriptionPropstype
AlertDialogDescriptionProps: DialogDescriptionPropsProps for Alert Dialog Description.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLParagraphElement>;
AlertDialogOverlaytype
DialogOverlay: { (props: DialogOverlayProps): JSX.Element | null; (props: DialogOverlayAsChildProps): JSX.Element | null; }Renders the dialog-overlay part of dialog.
With @askrjs/themes/default, the overlay is fully styled out of the box
with the shared backdrop token, blur, stacking, and fade animation. Standard
Dialog and AlertDialog usage requires no additional overlay CSS; customize
the theme tokens instead of applying a competing background class.
Supports polymorphic rendering via asChild.
AlertDialogOverlayAsChildPropstype
AlertDialogOverlayAsChildProps: DialogOverlayAsChildPropsProps for the asChild (polymorphic) rendering of Alert Dialog Overlay.
asChild- asChild: true;
children- children: JSXElement;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<Element>;
AlertDialogOverlayOwnPropstype
AlertDialogOverlayOwnProps: DialogOverlayOwnPropsOwn props for Alert Dialog Overlay, before merging with native element attributes.
forceMount- forceMount?: boolean | undefined;
AlertDialogOverlayPropstype
AlertDialogOverlayProps: DialogOverlayPropsProps for Alert Dialog Overlay.
asChild- asChild?: false | undefined;
children- children?: unknown;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
AlertDialogOwnPropstype
AlertDialogOwnProps: DialogPropsOwn props for Alert Dialog, before merging with native element attributes.
children- children?: unknown;
defaultOpen- defaultOpen?: boolean | undefined;
id- id?: string | undefined;
modal- modal?: boolean | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
open- open?: boolean | undefined;
AlertDialogPortaltype
DialogPortal: (props: DialogPortalProps) => JSX.Element | nullRenders a part of dialog.
AlertDialogPortalPropstype
AlertDialogPortalProps: DialogPortalPropsProps for Alert Dialog Portal.
children- children?: unknown;
AlertDialogPropstype
AlertDialogProps: DialogPropsProps for Alert Dialog.
children- children?: unknown;
defaultOpen- defaultOpen?: boolean | undefined;
id- id?: string | undefined;
modal- modal?: boolean | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
open- open?: boolean | undefined;
AlertDialogTitletype
DialogTitle: { (props: DialogTitleProps): JSX.Element; (props: DialogTitleAsChildProps): JSX.Element; }Renders the dialog-title part of dialog.
Supports polymorphic rendering via asChild.
AlertDialogTitleAsChildPropstype
AlertDialogTitleAsChildProps: DialogTitleAsChildPropsProps for the asChild (polymorphic) rendering of Alert Dialog Title.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
AlertDialogTitlePropstype
AlertDialogTitleProps: DialogTitlePropsProps for Alert Dialog Title.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLHeadingElement>;
AlertDialogTriggertype
AlertDialogTrigger: (props: AlertDialogTriggerProps | AlertDialogTriggerAsChildProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementRenders a part of alert-dialog.
Supports polymorphic rendering via asChild.
AlertDialogTriggerAsChildPropstype
AlertDialogTriggerAsChildProps: DialogTriggerAsChildPropsProps for the asChild (polymorphic) rendering of Alert Dialog Trigger.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
type- type?: undefined;
AlertDialogTriggerPropstype
AlertDialogTriggerProps: DialogTriggerPropsProps for Alert Dialog Trigger.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
type- type?: "button" | "submit" | "reset" | undefined;
Avatartype
Avatar: { (props: AvatarProps): JSX.Element; (props: AvatarAsChildProps): JSX.Element; }Renders the avatar part of avatar.
Supports polymorphic rendering via asChild.
AvatarAsChildPropstype
AvatarAsChildProps: BoxAsChildProps & AvatarOwnPropsProps for the asChild (polymorphic) rendering of Avatar.
asChild- asChild: true;
children- children: JSXElement;
id- id?: string | undefined;
ref- ref?: Ref<Element>;
AvatarFallbacktype
AvatarFallback: { (props: AvatarFallbackProps): JSX.Element | null; (props: AvatarFallbackAsChildProps): JSX.Element | null; }Renders the avatar-fallback part of avatar.
Supports polymorphic rendering via asChild.
AvatarFallbackAsChildPropstype
AvatarFallbackAsChildProps: BoxAsChildProps & AvatarFallbackOwnPropsProps for the asChild (polymorphic) rendering of Avatar Fallback.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
AvatarFallbackOwnPropstype
AvatarFallbackOwnProps: {
children?: unknown;
}Own props for Avatar Fallback, before merging with native element attributes.
children- children?: unknown;
AvatarFallbackPropstype
AvatarFallbackProps: BoxProps<'span', HTMLSpanElement> & AvatarFallbackOwnPropsProps for Avatar Fallback.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLSpanElement>;
AvatarImagetype
AvatarImage: (props: AvatarImageProps) => JSX.ElementRenders the avatar-image part of avatar.
AvatarImageOwnPropstype
AvatarImageOwnProps: {
src?: string;
alt: string;
onLoadingStatusChange?: (status: AvatarLoadingStatus) => void;
}Own props for Avatar Image, before merging with native element attributes.
alt- alt: string;
onLoadingStatusChange- onLoadingStatusChange?: ((status: AvatarLoadingStatus) => void) | undefined;
src- src?: string | undefined;
AvatarImagePropstype
AvatarImageProps: Omit<JSX.IntrinsicElements['img'], 'children' | 'ref' | 'onLoad' | 'onError' | 'alt' | 'src'> & AvatarImageOwnProps & {
ref?: Ref<HTMLImageElement>;
}Props for Avatar Image.
alt- alt: string;
onLoadingStatusChange- onLoadingStatusChange?: ((status: AvatarLoadingStatus) => void) | undefined;
ref- ref?: Ref<HTMLImageElement>;
src- src?: string | undefined;
AvatarLoadingStatustype
AvatarLoadingStatus: 'idle' | 'loading' | 'loaded' | 'error'Avatar Loading Status.
AvatarOwnPropstype
AvatarOwnProps: {
children?: unknown;
id?: string;
}Own props for Avatar, before merging with native element attributes.
children- children?: unknown;
id- id?: string | undefined;
AvatarPropstype
AvatarProps: BoxProps<'span', HTMLSpanElement> & AvatarOwnPropsProps for Avatar.
asChild- asChild?: false | undefined;
children- children?: unknown;
id- id?: string | undefined;
ref- ref?: Ref<HTMLSpanElement>;
Buttontype
Button: { (props: ButtonNativeProps): JSX.Element; (props: ButtonAsChildProps): JSX.Element; }Headless Button component
## Responsibilities
- Compose pressable foundation for interaction behavior
- Enforce type="button" default to prevent accidental form submission
- Forward props and refs to native button or child element
## Non-Responsibilities (delegated to pressable foundation)
- Keyboard event handling (Enter/Space)
- Pointer event handling
- Disabled state enforcement
- ARIA attribute application
## Invariants
- MUST NOT contain any event handler logic
- MUST NOT check disabled prop directly
- MUST use pressable() for ALL interaction behavior
- MUST use mergeProps() for ALL prop composition
Renders the button part of button.
Supports polymorphic rendering via asChild.
Native button (prevents accidental submit)
```tsx
<Button onPress={handleSave}>Save</Button>
```Explicit form submission
```tsx
<Button type="submit" onPress={handleSubmit}>Submit</Button>
```Polymorphic rendering (asChild)
```tsx
<Button asChild onPress={handleNav}>
<a href="/home">Home</a>
</Button>
```ButtonAsChildElementtype
ButtonAsChildElement: JSXElement | JSX.ElementButton As Child Element.
ButtonAsChildPropstype
ButtonAsChildProps: ButtonOwnProps & {
asChild: true;
children: ButtonAsChildElement;
ref?: Ref<Element>;
type?: never;
}Props when rendering with asChild (polymorphic)
asChild- asChild: true;
children- children: ButtonAsChildElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((e: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
size- size?: ButtonSize | undefined;
type- type?: undefined;
variant- variant?: ButtonVariant | undefined;
width- width?: ButtonWidth | undefined;
ButtonNativePropstype
ButtonNativeProps: Omit<JSX.IntrinsicElements['button'], 'children' | 'onClick' | 'disabled' | 'type' | 'ref'> & ButtonOwnProps & {
asChild?: false;
ref?: Ref<HTMLButtonElement>;
type?: 'button' | 'submit' | 'reset';
}Props when rendering as native <button>
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((e: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
size- size?: ButtonSize | undefined;
type- type?: "button" | "submit" | "reset" | undefined;
variant- variant?: ButtonVariant | undefined;
width- width?: ButtonWidth | undefined;
ButtonOwnPropstype
ButtonOwnProps: {
children?: unknown;
onPress?: (e: PressEvent) => void;
disabled?: boolean;
variant?: ButtonVariant;
size?: ButtonSize;
width?: ButtonWidth;
}Core Button props shared across all variants
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((e: PressEvent) => void) | undefined;
size- size?: ButtonSize | undefined;
variant- variant?: ButtonVariant | undefined;
width- width?: ButtonWidth | undefined;
ButtonPropstype
ButtonProps: ButtonNativeProps | ButtonAsChildPropsUnion of all Button prop variants
asChild- asChild?: boolean | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((e: PressEvent) => void) | undefined;
ref- ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLButtonElement | null) => void) | { current: HTMLButtonElement | null; } | null | undefined;
size- size?: ButtonSize | undefined;
type- type?: "button" | "submit" | "reset" | undefined;
variant- variant?: ButtonVariant | undefined;
width- width?: ButtonWidth | undefined;
ButtonSizetype
ButtonSize: 'xs' | 'sm' | 'md' | 'lg' | 'icon' | 'icon-xs' | 'icon-sm' | 'icon-lg'Button Size.
ButtonVarianttype
ButtonVariant: 'default' | 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'link'Button Variant.
ButtonWidthtype
ButtonWidth: 'auto' | 'full'Button Width.
Checkboxtype
Checkbox: { (props: CheckboxInputProps): JSX.Element; (props: CheckboxAsChildProps): JSX.Element; }Headless Checkbox component
## Responsibilities
- Apply aria-checked for checkbox state signaling
- Handle indeterminate state for native and asChild hosts
- Support controlled and uncontrolled checked state
- Forward props and refs to native input or child element
- Preserve native checkbox semantics and apply checkbox behavior to asChild hosts
## Non-Responsibilities
- Form submission orchestration beyond native input props
## Invariants
- MUST NOT add role="button" (native inputs are role="checkbox")
- checked state may be controlled or uncontrolled
- indeterminate overrides checked for state signaling
- For asChild, consumer MUST provide role="checkbox"
Renders the checkbox part of checkbox with role="checkbox".
Supports polymorphic rendering via asChild.
Native checkbox input
```tsx
const checked = state(false);
<Checkbox checked={checked()} onPress={() => checked.set(!checked())} />
```Polymorphic rendering (asChild)
```tsx
<Checkbox asChild checked={agreed} onPress={toggleAgree}>
<div role="checkbox">I agree to terms</div>
</Checkbox>
```Indeterminate state (partial selection)
```tsx
<Checkbox checked={someChecked} indeterminate={!allChecked && someChecked} onPress={toggleAll}>
Select All
</Checkbox>
```CheckboxAsChildPropstype
CheckboxAsChildProps: CheckboxOwnProps & {
asChild: true;
children: JSXElement;
ref?: Ref<Element>;
}Props when rendering via asChild
asChild- asChild: true;
checked- checked?: boolean | undefined;
children- children: JSXElement;
defaultChecked- defaultChecked?: boolean | undefined;
disabled- disabled?: boolean | undefined;
indeterminate- indeterminate?: boolean | undefined;
name- name?: string | undefined;
onCheckedChange- onCheckedChange?: ((checked: boolean) => void) | undefined;
onPress- onPress?: ((e: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
required- required?: boolean | undefined;
value- value?: string | undefined;
CheckboxInputPropstype
CheckboxInputProps: Omit<JSX.IntrinsicElements['input'], 'children' | 'onClick' | 'disabled' | 'type' | 'ref' | 'checked' | 'name' | 'value' | 'required'> & CheckboxOwnProps & {
asChild?: false;
ref?: Ref<HTMLInputElement>;
}Props when rendering as a native <input type="checkbox"> element
asChild- asChild?: false | undefined;
checked- checked?: boolean | undefined;
children- children?: unknown;
defaultChecked- defaultChecked?: boolean | undefined;
disabled- disabled?: boolean | undefined;
name- name?: string | undefined;
onCheckedChange- onCheckedChange?: ((checked: boolean) => void) | undefined;
onPress- onPress?: ((e: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLInputElement>;
required- required?: boolean | undefined;
value- value?: string | undefined;
CheckboxOwnPropstype
CheckboxOwnProps: {
children?: unknown;
onPress?: (e: PressEvent) => void;
checked?: boolean;
defaultChecked?: boolean;
onCheckedChange?: (checked: boolean) => void;
indeterminate?: boolean;
disabled?: boolean;
required?: boolean;
name?: string;
value?: string;
}Props shared by all Checkbox variants
checked- checked?: boolean | undefined;
children- children?: unknown;
defaultChecked- defaultChecked?: boolean | undefined;
disabled- disabled?: boolean | undefined;
indeterminate- indeterminate?: boolean | undefined;
name- name?: string | undefined;
onCheckedChange- onCheckedChange?: ((checked: boolean) => void) | undefined;
onPress- onPress?: ((e: PressEvent) => void) | undefined;
required- required?: boolean | undefined;
value- value?: string | undefined;
CheckboxPropstype
CheckboxProps: CheckboxInputProps | CheckboxAsChildPropsDiscriminated union of Checkbox prop types
asChild- asChild?: boolean | undefined;
checked- checked?: boolean | undefined;
children- children?: unknown;
defaultChecked- defaultChecked?: boolean | undefined;
disabled- disabled?: boolean | undefined;
name- name?: string | undefined;
onCheckedChange- onCheckedChange?: ((checked: boolean) => void) | undefined;
onPress- onPress?: ((e: PressEvent) => void) | undefined;
ref- ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLInputElement | null) => void) | { current: HTMLInputElement | null; } | null | undefined;
required- required?: boolean | undefined;
value- value?: string | undefined;
Collapsibletype
Collapsible: (props: CollapsibleProps) => JSX.ElementRenders a part of collapsible.
CollapsibleContenttype
CollapsibleContent: { (props: CollapsibleContentProps): JSX.Element | null; (props: CollapsibleContentAsChildProps): JSX.Element | null; }Renders the collapsible-content part of collapsible.
Supports polymorphic rendering via asChild.
CollapsibleContentAsChildPropstype
CollapsibleContentAsChildProps: anyProps for the asChild (polymorphic) rendering of Collapsible Content.
asChild- Render as child element instead of div
children- Child content
forceMount- Force mount even when closed (for animation)
ref- Ref forwarding
CollapsibleContentPropstype
CollapsibleContentProps: anyContent component props
asChild- Render as child element instead of div
children- Child content
forceMount- Force mount even when closed (for animation)
ref- Ref forwarding
CollapsiblePropstype
CollapsibleProps: anyRoot component props
children- Child components (Trigger, Content)
defaultOpen- Uncontrolled default open state
disabled- Whether the collapsible is disabled
id- Stable caller-provided identity used for ARIA linking when available
onOpenChange- Callback when open state changes
open- Controlled open state
CollapsibleTriggertype
CollapsibleTrigger: { (props: CollapsibleTriggerProps): JSX.Element; (props: CollapsibleTriggerAsChildProps): JSX.Element; }Renders the collapsible-trigger part of collapsible.
Supports polymorphic rendering via asChild.
CollapsibleTriggerAsChildPropstype
CollapsibleTriggerAsChildProps: anyProps for the asChild (polymorphic) rendering of Collapsible Trigger.
asChild- Render as child element instead of button
children- Child content
ref- Ref forwarding
CollapsibleTriggerPropstype
CollapsibleTriggerProps: anyTrigger component props (button semantics)
asChild- Render as child element instead of button
children- Child content
ref- Ref forwarding
DebouncedInputtype
DebouncedInput: (props: DebouncedInputProps) => JSX.ElementDebouncedInput is a convenience wrapper around Input that emits a settled
value for search and filter surfaces.
One component-owned timer is re-timed when debounceMs changes (or emits
at once when the delay drops to zero). A pending value is delivered to the latest
onDebouncedInput, is dropped when onDebouncedInput is removed, and is
cancelled on unmount.
DebouncedInputPropstype
DebouncedInputProps: Omit<InputInputProps, 'onInput' | 'type'> & {
type?: JSX.IntrinsicElements['input']['type'];
debounceMs?: number;
onInput?: (event: InputEvent) => void;
onDebouncedInput?: (value: string) => void;
}Props for Debounced Input.
asChild- asChild?: false | undefined;
children- children?: unknown;
debounceMs- debounceMs?: number | undefined;
onDebouncedInput- onDebouncedInput?: ((value: string) => void) | undefined;
onInput- onInput?: ((event: InputEvent) => void) | undefined;
ref- ref?: Ref<HTMLInputElement>;
type- type?: ReactiveProp<IntrinsicTextValue>;
Dialogtype
Dialog: (props: DialogProps) => JSX.ElementCoordinates the Dialog trigger, portal, overlay, and content.
```tsx
<Dialog>
<DialogTrigger>Open dialog</DialogTrigger>
<DialogPortal>
<DialogOverlay />
<DialogContent>Confirm action</DialogContent>
</DialogPortal>
</Dialog>
```DialogClosetype
DialogClose: { (props: DialogCloseProps): JSX.Element; (props: DialogCloseAsChildProps): JSX.Element; }Renders the dialog-close part of dialog.
Supports polymorphic rendering via asChild.
DialogCloseAsChildPropstype
DialogCloseAsChildProps: ButtonLikeAsChildPropsProps for the asChild (polymorphic) rendering of Dialog Close.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
type- type?: undefined;
DialogClosePropstype
DialogCloseProps: ButtonLikeProps<'button', HTMLButtonElement>Props for Dialog Close.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
type- type?: "button" | "submit" | "reset" | undefined;
DialogContenttype
DialogContent: { (props: DialogContentProps): JSX.Element | null; (props: DialogContentAsChildProps): JSX.Element | null; }Renders the dialog-content part of dialog.
Supports polymorphic rendering via asChild.
DialogContentAsChildPropstype
DialogContentAsChildProps: BoxAsChildProps & DialogContentOwnPropsProps for the asChild (polymorphic) rendering of Dialog Content.
asChild- asChild: true;
children- children: JSXElement;
forceMount- forceMount?: boolean | undefined;
onDismiss- onDismiss?: (() => void) | undefined;
onEscapeKeyDown- onEscapeKeyDown?: ((event: KeyboardEvent) => void) | undefined;
onInteractOutside- onInteractOutside?: ((event: Event) => void) | undefined;
onPointerDownOutside- onPointerDownOutside?: ((event: PointerEvent) => void) | undefined;
ref- ref?: Ref<Element>;
restoreFocus- Explicit focus target used when a controlled dialog has no persistent trigger.
role- role?: "dialog" | "alertdialog" | undefined;
DialogContentOwnPropstype
DialogContentOwnProps: {
forceMount?: boolean;
role?: 'dialog' | 'alertdialog';
onEscapeKeyDown?: (event: KeyboardEvent) => void;
onPointerDownOutside?: (event: PointerEvent) => void;
onInteractOutside?: (event: Event) => void;
onDismiss?: () => void;
/** Explicit focus target used when a controlled dialog has no persistent trigger. */
restoreFocus?: HTMLElement | null | (() => HTMLElement | null);
}Own props for Dialog Content, before merging with native element attributes.
forceMount- forceMount?: boolean | undefined;
onDismiss- onDismiss?: (() => void) | undefined;
onEscapeKeyDown- onEscapeKeyDown?: ((event: KeyboardEvent) => void) | undefined;
onInteractOutside- onInteractOutside?: ((event: Event) => void) | undefined;
onPointerDownOutside- onPointerDownOutside?: ((event: PointerEvent) => void) | undefined;
restoreFocus- Explicit focus target used when a controlled dialog has no persistent trigger.
role- role?: "dialog" | "alertdialog" | undefined;
DialogContentPropstype
DialogContentProps: BoxProps<'div', HTMLDivElement> & DialogContentOwnPropsProps for Dialog Content.
asChild- asChild?: false | undefined;
children- children?: unknown;
forceMount- forceMount?: boolean | undefined;
onDismiss- onDismiss?: (() => void) | undefined;
onEscapeKeyDown- onEscapeKeyDown?: ((event: KeyboardEvent) => void) | undefined;
onInteractOutside- onInteractOutside?: ((event: Event) => void) | undefined;
onPointerDownOutside- onPointerDownOutside?: ((event: PointerEvent) => void) | undefined;
ref- ref?: Ref<HTMLDivElement>;
restoreFocus- Explicit focus target used when a controlled dialog has no persistent trigger.
role- role?: "dialog" | "alertdialog" | undefined;
DialogDescriptiontype
DialogDescription: { (props: DialogDescriptionProps): JSX.Element; (props: DialogDescriptionAsChildProps): JSX.Element; }Renders the dialog-description part of dialog.
Supports polymorphic rendering via asChild.
DialogDescriptionAsChildPropstype
DialogDescriptionAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Dialog Description.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
DialogDescriptionPropstype
DialogDescriptionProps: BoxProps<'p', HTMLParagraphElement>Props for Dialog Description.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLParagraphElement>;
DialogOverlaytype
DialogOverlay: { (props: DialogOverlayProps): JSX.Element | null; (props: DialogOverlayAsChildProps): JSX.Element | null; }Renders the dialog-overlay part of dialog.
With @askrjs/themes/default, the overlay is fully styled out of the box
with the shared backdrop token, blur, stacking, and fade animation. Standard
Dialog and AlertDialog usage requires no additional overlay CSS; customize
the theme tokens instead of applying a competing background class.
Supports polymorphic rendering via asChild.
DialogOverlayAsChildPropstype
DialogOverlayAsChildProps: BoxAsChildProps & DialogOverlayOwnPropsProps for the asChild (polymorphic) rendering of Dialog Overlay.
asChild- asChild: true;
children- children: JSXElement;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<Element>;
DialogOverlayOwnPropstype
DialogOverlayOwnProps: {
forceMount?: boolean;
}Own props for Dialog Overlay, before merging with native element attributes.
forceMount- forceMount?: boolean | undefined;
DialogOverlayPropstype
DialogOverlayProps: BoxProps<'div', HTMLDivElement> & DialogOverlayOwnPropsProps for Dialog Overlay.
asChild- asChild?: false | undefined;
children- children?: unknown;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
DialogOwnPropstype
DialogOwnProps: {
children?: unknown;
id?: string;
open?: boolean;
defaultOpen?: boolean;
onOpenChange?: (open: boolean) => void;
modal?: boolean;
}Own props for Dialog, before merging with native element attributes.
children- children?: unknown;
defaultOpen- defaultOpen?: boolean | undefined;
id- id?: string | undefined;
modal- modal?: boolean | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
open- open?: boolean | undefined;
DialogPortaltype
DialogPortal: (props: DialogPortalProps) => JSX.Element | nullRenders a part of dialog.
DialogPortalPropstype
DialogPortalProps: {
children?: unknown;
}Props for Dialog Portal.
children- children?: unknown;
DialogPropstype
DialogProps: DialogOwnPropsProps for Dialog.
children- children?: unknown;
defaultOpen- defaultOpen?: boolean | undefined;
id- id?: string | undefined;
modal- modal?: boolean | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
open- open?: boolean | undefined;
DialogTitletype
DialogTitle: { (props: DialogTitleProps): JSX.Element; (props: DialogTitleAsChildProps): JSX.Element; }Renders the dialog-title part of dialog.
Supports polymorphic rendering via asChild.
DialogTitleAsChildPropstype
DialogTitleAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Dialog Title.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
DialogTitlePropstype
DialogTitleProps: BoxProps<'h2', HTMLHeadingElement>Props for Dialog Title.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLHeadingElement>;
DialogTriggertype
DialogTrigger: { (props: DialogTriggerProps): JSX.Element; (props: DialogTriggerAsChildProps): JSX.Element; }Renders the dialog-trigger part of dialog.
Supports polymorphic rendering via asChild.
DialogTriggerAsChildPropstype
DialogTriggerAsChildProps: ButtonLikeAsChildPropsProps for the asChild (polymorphic) rendering of Dialog Trigger.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
type- type?: undefined;
DialogTriggerPropstype
DialogTriggerProps: ButtonLikeProps<'button', HTMLButtonElement>Props for Dialog Trigger.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
type- type?: "button" | "submit" | "reset" | undefined;
DismissableLayertype
DismissableLayer: { (props: DismissableLayerProps): JSX.Element; (props: DismissableLayerAsChildProps): JSX.Element; }Renders a part of dismissable-layer.
Supports polymorphic rendering via asChild.
DismissableLayerAsChildPropstype
DismissableLayerAsChildProps: DismissableLayerOwnProps & {
asChild: true;
children: JSXElement;
ref?: Ref<Element>;
}Props for the asChild (polymorphic) rendering of Dismissable Layer.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
disableOutsidePointerEvents- disableOutsidePointerEvents?: boolean | undefined;
id- id?: string | undefined;
onDismiss- onDismiss?: (() => void) | undefined;
onEscapeKeyDown- onEscapeKeyDown?: ((event: KeyboardEvent) => void) | undefined;
onInteractOutside- onInteractOutside?: ((event: Event) => void) | undefined;
onPointerDownOutside- onPointerDownOutside?: ((event: PointerEvent) => void) | undefined;
ref- ref?: Ref<Element>;
DismissableLayerOwnPropstype
DismissableLayerOwnProps: {
children?: unknown;
id?: string;
disabled?: boolean;
disableOutsidePointerEvents?: boolean;
onEscapeKeyDown?: (event: KeyboardEvent) => void;
onPointerDownOutside?: (event: PointerEvent) => void;
onInteractOutside?: (event: Event) => void;
onDismiss?: () => void;
}Own props for Dismissable Layer, before merging with native element attributes.
children- children?: unknown;
disabled- disabled?: boolean | undefined;
disableOutsidePointerEvents- disableOutsidePointerEvents?: boolean | undefined;
id- id?: string | undefined;
onDismiss- onDismiss?: (() => void) | undefined;
onEscapeKeyDown- onEscapeKeyDown?: ((event: KeyboardEvent) => void) | undefined;
onInteractOutside- onInteractOutside?: ((event: Event) => void) | undefined;
onPointerDownOutside- onPointerDownOutside?: ((event: PointerEvent) => void) | undefined;
DismissableLayerPropstype
DismissableLayerProps: Omit<JSX.IntrinsicElements['div'], 'children' | 'ref'> & DismissableLayerOwnProps & {
asChild?: false;
ref?: Ref<HTMLDivElement>;
}Props for Dismissable Layer.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
disableOutsidePointerEvents- disableOutsidePointerEvents?: boolean | undefined;
id- id?: string | undefined;
onDismiss- onDismiss?: (() => void) | undefined;
onEscapeKeyDown- onEscapeKeyDown?: ((event: KeyboardEvent) => void) | undefined;
onInteractOutside- onInteractOutside?: ((event: Event) => void) | undefined;
onPointerDownOutside- onPointerDownOutside?: ((event: PointerEvent) => void) | undefined;
ref- ref?: Ref<HTMLDivElement>;
Dropdowntype
Dropdown: (props: DropdownProps) => JSX.ElementRenders a part of dropdown.
DropdownContenttype
DropdownContent: { (props: DropdownContentProps): JSX.Element | null; (props: DropdownContentAsChildProps): JSX.Element | null; }Renders a part of dropdown.
Supports polymorphic rendering via asChild.
DropdownContentAsChildPropstype
DropdownContentAsChildProps: BoxAsChildProps & DropdownContentOwnPropsProps for the asChild (polymorphic) rendering of Dropdown Content.
align- align?: OverlayAlign | undefined;
asChild- asChild: true;
children- children: JSXElement;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<Element>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
DropdownContentOwnPropstype
DropdownContentOwnProps: {
forceMount?: boolean;
side?: OverlaySide;
align?: OverlayAlign;
sideOffset?: number;
}Own props for Dropdown Content, before merging with native element attributes.
align- align?: OverlayAlign | undefined;
forceMount- forceMount?: boolean | undefined;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
DropdownContentPropstype
DropdownContentProps: BoxProps<'div', HTMLDivElement> & DropdownContentOwnPropsProps for Dropdown Content.
align- align?: OverlayAlign | undefined;
asChild- asChild?: false | undefined;
children- children?: unknown;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
DropdownGrouptype
DropdownGroup: (props: DropdownGroupProps | DropdownGroupAsChildProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementRenders the dropdown-group part of dropdown with role="group".
Supports polymorphic rendering via asChild.
DropdownGroupAsChildPropstype
DropdownGroupAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Dropdown Group.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
DropdownGroupPropstype
DropdownGroupProps: BoxProps<'div', HTMLDivElement>Props for Dropdown Group.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
DropdownItemtype
DropdownItem: { (props: DropdownItemProps): JSX.Element | null; (props: DropdownItemAsChildProps): JSX.Element | null; }Renders a part of dropdown.
Supports polymorphic rendering via asChild.
DropdownItemAsChildPropstype
DropdownItemAsChildProps: Omit<ButtonLikeAsChildProps, 'onPress'> & DropdownItemOwnPropsProps for the asChild (polymorphic) rendering of Dropdown Item.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onSelect- onSelect?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
textValue- Text used for typeahead when rendered children are not plain text.
type- type?: undefined;
value- value?: string | undefined;
variant- variant?: DropdownItemVariant | undefined;
DropdownItemOwnPropstype
DropdownItemOwnProps: {
children?: unknown;
disabled?: boolean;
value?: string;
variant?: DropdownItemVariant;
onSelect?: (event: PressEvent) => void;
/** Text used for typeahead when rendered children are not plain text. */
textValue?: string;
}Own props for Dropdown Item, before merging with native element attributes.
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onSelect- onSelect?: ((event: PressEvent) => void) | undefined;
textValue- Text used for typeahead when rendered children are not plain text.
value- value?: string | undefined;
variant- variant?: DropdownItemVariant | undefined;
DropdownItemPropstype
DropdownItemProps: Omit<ButtonLikeProps<'button', HTMLButtonElement>, 'onPress'> & DropdownItemOwnPropsProps for Dropdown Item.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
ref- ref?: Ref<HTMLButtonElement>;
textValue- Text used for typeahead when rendered children are not plain text.
type- type?: "button" | "submit" | "reset" | undefined;
variant- variant?: DropdownItemVariant | undefined;
DropdownItemVarianttype
DropdownItemVariant: 'default' | 'destructive'Dropdown Item Variant.
DropdownLabeltype
DropdownLabel: (props: DropdownLabelProps | DropdownLabelAsChildProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementRenders the dropdown-label part of dropdown.
Supports polymorphic rendering via asChild.
DropdownLabelAsChildPropstype
DropdownLabelAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Dropdown Label.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
DropdownLabelPropstype
DropdownLabelProps: BoxProps<'div', HTMLDivElement>Props for Dropdown Label.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
DropdownOwnPropstype
DropdownOwnProps: {
/** Supports literal, nested, array-mapped, and `For`-rendered descendants. */
children?: unknown;
id?: string;
open?: boolean;
defaultOpen?: boolean;
onOpenChange?: (open: boolean) => void;
}Own props for Dropdown, before merging with native element attributes.
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
defaultOpen- defaultOpen?: boolean | undefined;
id- id?: string | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
open- open?: boolean | undefined;
DropdownPortaltype
DropdownPortal: (props: DropdownPortalProps) => JSX.Element | nullRenders a part of dropdown.
DropdownPortalPropstype
DropdownPortalProps: {
children?: unknown;
}Props for Dropdown Portal.
children- children?: unknown;
DropdownPropstype
DropdownProps: DropdownOwnPropsProps for Dropdown.
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
defaultOpen- defaultOpen?: boolean | undefined;
id- id?: string | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
open- open?: boolean | undefined;
DropdownSeparatortype
DropdownSeparator: (props: DropdownSeparatorProps | DropdownSeparatorAsChildProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementRenders the dropdown-separator part of dropdown with role="separator".
Supports polymorphic rendering via asChild.
DropdownSeparatorAsChildPropstype
DropdownSeparatorAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Dropdown Separator.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
DropdownSeparatorPropstype
DropdownSeparatorProps: BoxProps<'div', HTMLDivElement>Props for Dropdown Separator.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
DropdownTriggertype
DropdownTrigger: { (props: DropdownTriggerProps): JSX.Element | null; (props: DropdownTriggerAsChildProps): JSX.Element | null; }Renders the dropdown-trigger part of dropdown.
Supports polymorphic rendering via asChild.
DropdownTriggerAsChildPropstype
DropdownTriggerAsChildProps: ButtonLikeAsChildProps & DropdownTriggerOwnPropsProps for the asChild (polymorphic) rendering of Dropdown Trigger.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
size- size?: DropdownTriggerSize | undefined;
type- type?: undefined;
variant- variant?: DropdownTriggerVariant | undefined;
DropdownTriggerOwnPropstype
DropdownTriggerOwnProps: {
variant?: DropdownTriggerVariant;
size?: DropdownTriggerSize;
}Own props for Dropdown Trigger, before merging with native element attributes.
size- size?: DropdownTriggerSize | undefined;
variant- variant?: DropdownTriggerVariant | undefined;
DropdownTriggerPropstype
DropdownTriggerProps: ButtonLikeProps<'button', HTMLButtonElement> & DropdownTriggerOwnPropsProps for Dropdown Trigger.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
size- size?: DropdownTriggerSize | undefined;
type- type?: "button" | "submit" | "reset" | undefined;
variant- variant?: DropdownTriggerVariant | undefined;
DropdownTriggerSizetype
DropdownTriggerSize: 'md' | 'icon'Dropdown Trigger Size.
DropdownTriggerVarianttype
DropdownTriggerVariant: 'default' | 'ghost'Dropdown Trigger Variant.
FocusScopetype
FocusScope: { (props: FocusScopeProps): JSX.Element; (props: FocusScopeAsChildProps): JSX.Element; }Renders a part of focus-scope.
Supports polymorphic rendering via asChild.
FocusScopeAsChildPropstype
FocusScopeAsChildProps: FocusScopeOwnProps & {
asChild: true;
children: JSXElement;
ref?: Ref<Element>;
}Props for the asChild (polymorphic) rendering of Focus Scope.
asChild- asChild: true;
autoFocus- autoFocus?: boolean | undefined;
children- children: JSXElement;
id- id?: string | undefined;
loop- loop?: boolean | undefined;
ref- ref?: Ref<Element>;
restoreFocus- restoreFocus?: boolean | undefined;
restoreFocusTarget- restoreFocusTarget?: HTMLElement | (() => HTMLElement | null) | null | undefined;
tabIndex- tabIndex?: number | undefined;
trapped- trapped?: boolean | undefined;
FocusScopeOwnPropstype
FocusScopeOwnProps: {
children?: unknown;
trapped?: boolean;
loop?: boolean;
autoFocus?: boolean;
restoreFocus?: boolean;
restoreFocusTarget?: HTMLElement | null | (() => HTMLElement | null);
id?: string;
tabIndex?: number;
}Own props for Focus Scope, before merging with native element attributes.
autoFocus- autoFocus?: boolean | undefined;
children- children?: unknown;
id- id?: string | undefined;
loop- loop?: boolean | undefined;
restoreFocus- restoreFocus?: boolean | undefined;
restoreFocusTarget- restoreFocusTarget?: HTMLElement | (() => HTMLElement | null) | null | undefined;
tabIndex- tabIndex?: number | undefined;
trapped- trapped?: boolean | undefined;
FocusScopePropstype
FocusScopeProps: Omit<JSX.IntrinsicElements['div'], 'children' | 'ref'> & FocusScopeOwnProps & {
asChild?: false;
ref?: Ref<HTMLDivElement>;
}Props for Focus Scope.
asChild- asChild?: false | undefined;
autoFocus- autoFocus?: boolean | undefined;
children- children?: unknown;
id- id?: string | undefined;
loop- loop?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
restoreFocus- restoreFocus?: boolean | undefined;
restoreFocusTarget- restoreFocusTarget?: HTMLElement | (() => HTMLElement | null) | null | undefined;
tabIndex- tabIndex?: number | undefined;
trapped- trapped?: boolean | undefined;
Formtype
Form: { (props: FormProps): JSX.Element; (props: FormAsChildProps): JSX.Element; }Renders a part of form.
Supports polymorphic rendering via asChild.
FormAsChildPropstype
FormAsChildProps: Omit<JSX.IntrinsicElements['form'], 'children' | 'ref'> & FormOwnProps & {
asChild: true;
children: JSX.Element;
ref?: import('@askrjs/askr/foundations/utilities').Ref<Element>;
}asChild keeps the form host supplied by the consumer, while retaining the
native form attribute contract (method, action, target, encoding, etc.).
asChild- asChild: true;
children- children: JSX.Element;
ref- ref?: Ref<Element>;
FormPropstype
FormProps: BoxProps<'form', HTMLFormElement> & FormOwnPropsProps for Form.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLFormElement>;
HoverCardtype
HoverCard: (props: HoverCardProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementRenders a part of hover-card.
HoverCardAsChildPropstype
HoverCardAsChildProps: HoverCardOwnProps & {
asChild: true;
children: JSX.Element;
}Props for the asChild (polymorphic) rendering of Hover Card.
asChild- asChild: true;
children- children: JSX.Element;
closeDelay- closeDelay?: number | undefined;
defaultOpen- defaultOpen?: boolean | undefined;
id- id?: string | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
open- open?: boolean | undefined;
openDelay- openDelay?: number | undefined;
HoverCardContenttype
HoverCardContent: { (props: HoverCardContentProps): JSX.Element | null; (props: HoverCardContentAsChildProps): JSX.Element | null; }Renders the hover-card-content part of hover-card with role="dialog".
Supports polymorphic rendering via asChild.
HoverCardContentAsChildPropstype
HoverCardContentAsChildProps: BoxAsChildProps & HoverCardContentOwnPropsProps for the asChild (polymorphic) rendering of Hover Card Content.
align- align?: OverlayAlign | undefined;
asChild- asChild: true;
children- children: JSXElement;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<Element>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
HoverCardContentPropstype
HoverCardContentProps: BoxProps<'div', HTMLDivElement> & HoverCardContentOwnPropsProps for Hover Card Content.
align- align?: OverlayAlign | undefined;
asChild- asChild?: false | undefined;
children- children?: unknown;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
HoverCardOwnPropstype
HoverCardOwnProps: {
children?: unknown;
id?: string;
open?: boolean;
defaultOpen?: boolean;
onOpenChange?: (open: boolean) => void;
openDelay?: number;
closeDelay?: number;
}Own props for Hover Card, before merging with native element attributes.
children- children?: unknown;
closeDelay- closeDelay?: number | undefined;
defaultOpen- defaultOpen?: boolean | undefined;
id- id?: string | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
open- open?: boolean | undefined;
openDelay- openDelay?: number | undefined;
HoverCardPortaltype
HoverCardPortal: (props: HoverCardPortalProps) => JSX.Element | nullRenders a part of hover-card.
HoverCardPortalPropstype
HoverCardPortalProps: {
children?: unknown;
}Props for Hover Card Portal.
children- children?: unknown;
HoverCardPropstype
HoverCardProps: HoverCardOwnPropsProps for Hover Card.
children- children?: unknown;
closeDelay- closeDelay?: number | undefined;
defaultOpen- defaultOpen?: boolean | undefined;
id- id?: string | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
open- open?: boolean | undefined;
openDelay- openDelay?: number | undefined;
HoverCardTriggertype
HoverCardTrigger: { (props: HoverCardTriggerProps): JSX.Element; (props: HoverCardTriggerAsChildProps): JSX.Element; }Renders the hover-card-trigger part of hover-card.
Supports polymorphic rendering via asChild.
HoverCardTriggerAsChildPropstype
HoverCardTriggerAsChildProps: ButtonLikeAsChildPropsProps for the asChild (polymorphic) rendering of Hover Card Trigger.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
type- type?: undefined;
HoverCardTriggerPropstype
HoverCardTriggerProps: ButtonLikeProps<'button', HTMLButtonElement>Props for Hover Card Trigger.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
type- type?: "button" | "submit" | "reset" | undefined;
Inputtype
Input: { (props: InputInputProps): JSX.Element; (props: InputAsChildProps): JSX.Element; }Renders the input part of input.
Supports polymorphic rendering via asChild.
InputAsChildPropstype
InputAsChildProps: InputOwnProps & {
asChild: true;
children: JSXElement;
ref?: Ref<Element>;
}Props for the asChild (polymorphic) rendering of Input.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
ref- ref?: Ref<Element>;
tabIndex- tabIndex?: number | undefined;
InputEventtype
InputEvent: Event & {
currentTarget: HTMLInputElement;
target: HTMLInputElement;
}Input Event.
InputInputPropstype
InputInputProps: Omit<JSX.IntrinsicElements['input'], 'children' | 'ref'> & InputOwnProps & {
asChild?: false;
ref?: Ref<HTMLInputElement>;
}Props for Input Input.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLInputElement>;
InputOwnPropstype
InputOwnProps: {
children?: unknown;
disabled?: boolean;
tabIndex?: number;
}Own props for Input, before merging with native element attributes.
children- children?: unknown;
disabled- disabled?: boolean | undefined;
tabIndex- tabIndex?: number | undefined;
InputPropstype
InputProps: InputInputProps | InputAsChildPropsProps for Input.
asChild- asChild?: boolean | undefined;
children- children?: unknown;
ref- ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLInputElement | null) => void) | { current: HTMLInputElement | null; } | null | undefined;
Labeltype
Label: { (props: LabelLabelProps): JSXElement; (props: LabelAsChildProps): JSXElement; }Renders the label part of label.
Supports polymorphic rendering via asChild.
LabelAsChildPropstype
LabelAsChildProps: LabelOwnProps & {
asChild: true;
children: JSXElement;
ref?: Ref<Element>;
}Props for the asChild (polymorphic) rendering of Label.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
LabelLabelPropstype
LabelLabelProps: Omit<Props, 'children'> & LabelOwnProps & {
asChild?: false;
htmlFor?: string;
ref?: Ref<HTMLLabelElement>;
}Props for Label Label.
asChild- asChild?: false | undefined;
children- children?: unknown;
htmlFor- htmlFor?: string | undefined;
ref- ref?: Ref<HTMLLabelElement>;
LabelOwnPropstype
LabelOwnProps: {
children?: unknown;
}Own props for Label, before merging with native element attributes.
children- children?: unknown;
LabelPropstype
LabelProps: LabelLabelProps | LabelAsChildPropsProps for Label.
asChild- asChild?: boolean | undefined;
children- children?: unknown;
ref- ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLLabelElement | null) => void) | { current: HTMLLabelElement | null; } | null | undefined;
Menutype
Menu: (props: MenuProps) => JSX.ElementRenders a part of menu.
Menubartype
Menubar: (props: MenubarProps) => JSX.ElementRenders a part of menubar.
MenubarContenttype
MenubarContent: { (props: MenubarContentProps): JSX.Element | null; (props: MenubarContentAsChildProps): JSX.Element | null; }Renders a part of menubar.
MenubarContentAsChildPropstype
MenubarContentAsChildProps: BoxAsChildProps & MenubarContentOwnPropsProps for the asChild (polymorphic) rendering of Menubar Content.
align- align?: OverlayAlign | undefined;
asChild- asChild: true;
children- children: JSXElement;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<Element>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
MenubarContentOwnPropstype
MenubarContentOwnProps: {
forceMount?: boolean;
side?: OverlaySide;
align?: OverlayAlign;
sideOffset?: number;
}Own props for Menubar Content, before merging with native element attributes.
align- align?: OverlayAlign | undefined;
forceMount- forceMount?: boolean | undefined;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
MenubarContentPropstype
MenubarContentProps: BoxProps<'div', HTMLDivElement> & MenubarContentOwnPropsProps for Menubar Content.
align- align?: OverlayAlign | undefined;
asChild- asChild?: false | undefined;
children- children?: unknown;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
MenubarGrouptype
MenubarGroup: (props: MenubarGroupProps | MenubarGroupAsChildProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementRenders the menubar-group part of menubar with role="group".
Supports polymorphic rendering via asChild.
MenubarGroupAsChildPropstype
MenubarGroupAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Menubar Group.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
MenubarGroupPropstype
MenubarGroupProps: BoxProps<'div', HTMLDivElement>Props for Menubar Group.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
MenubarItemtype
MenubarItem: { (props: MenubarItemProps): JSX.Element | null; (props: MenubarItemAsChildProps): JSX.Element | null; }Renders a part of menubar.
Supports polymorphic rendering via asChild.
MenubarItemAsChildPropstype
MenubarItemAsChildProps: ButtonLikeAsChildProps & MenubarTextValueOwnPropsProps for the asChild (polymorphic) rendering of Menubar Item.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
textValue- Text used for typeahead when rendered children are not plain text.
type- type?: undefined;
MenubarItemPropstype
MenubarItemProps: ButtonLikeProps<'button', HTMLButtonElement> & MenubarTextValueOwnPropsProps for Menubar Item.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
textValue- Text used for typeahead when rendered children are not plain text.
type- type?: "button" | "submit" | "reset" | undefined;
MenubarLabeltype
MenubarLabel: (props: MenubarLabelProps | MenubarLabelAsChildProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementRenders the menubar-label part of menubar.
Supports polymorphic rendering via asChild.
MenubarLabelAsChildPropstype
MenubarLabelAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Menubar Label.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
MenubarLabelPropstype
MenubarLabelProps: BoxProps<'div', HTMLDivElement>Props for Menubar Label.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
MenubarMenutype
MenubarMenu: (props: MenubarMenuProps) => JSX.ElementRenders a part of menubar.
MenubarMenuPropstype
MenubarMenuProps: {
children?: unknown;
/** Stable and unique among sibling menus when menus are rendered dynamically. */
value?: string;
}Props for Menubar Menu.
children- children?: unknown;
value- Stable and unique among sibling menus when menus are rendered dynamically.
MenubarOwnPropstype
MenubarOwnProps: {
/** Supports literal, nested, array-mapped, and `For`-rendered descendants. */
children?: unknown;
id?: string;
loop?: boolean;
}Own props for Menubar, before merging with native element attributes.
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
id- id?: string | undefined;
loop- loop?: boolean | undefined;
MenubarPortaltype
MenubarPortal: (props: MenubarPortalProps) => JSX.Element | nullRenders a part of menubar.
MenubarPortalPropstype
MenubarPortalProps: {
children?: unknown;
}Props for Menubar Portal.
children- children?: unknown;
MenubarPropstype
MenubarProps: BoxProps<'div', HTMLDivElement> & MenubarOwnPropsProps for Menubar.
asChild- asChild?: false | undefined;
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
id- id?: string | undefined;
loop- loop?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
MenubarSeparatortype
MenubarSeparator: (props: MenubarSeparatorProps | MenubarSeparatorAsChildProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementRenders the menubar-separator part of menubar with role="separator".
Supports polymorphic rendering via asChild.
MenubarSeparatorAsChildPropstype
MenubarSeparatorAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Menubar Separator.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
MenubarSeparatorPropstype
MenubarSeparatorProps: BoxProps<'div', HTMLDivElement>Props for Menubar Separator.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
MenubarSubtype
MenubarSub: (props: MenubarSubProps) => JSX.ElementRenders a part of menubar.
MenubarSubContenttype
MenubarSubContent: { (props: MenubarSubContentProps): JSX.Element | null; (props: MenubarSubContentAsChildProps): JSX.Element | null; }Renders a part of menubar.
MenubarSubContentAsChildPropstype
MenubarSubContentAsChildProps: BoxAsChildProps & MenubarContentOwnPropsProps for the asChild (polymorphic) rendering of Menubar Sub Content.
align- align?: OverlayAlign | undefined;
asChild- asChild: true;
children- children: JSXElement;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<Element>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
MenubarSubContentPropstype
MenubarSubContentProps: BoxProps<'div', HTMLDivElement> & MenubarContentOwnPropsProps for Menubar Sub Content.
align- align?: OverlayAlign | undefined;
asChild- asChild?: false | undefined;
children- children?: unknown;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
MenubarSubPropstype
MenubarSubProps: {
children?: unknown;
value?: string;
}Props for Menubar Sub.
children- children?: unknown;
value- value?: string | undefined;
MenubarSubTriggertype
MenubarSubTrigger: { (props: MenubarSubTriggerProps): JSX.Element | null; (props: MenubarSubTriggerAsChildProps): JSX.Element | null; }Renders a part of menubar.
Supports polymorphic rendering via asChild.
MenubarSubTriggerAsChildPropstype
MenubarSubTriggerAsChildProps: ButtonLikeAsChildProps & MenubarTextValueOwnPropsProps for the asChild (polymorphic) rendering of Menubar Sub Trigger.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
textValue- Text used for typeahead when rendered children are not plain text.
type- type?: undefined;
MenubarSubTriggerPropstype
MenubarSubTriggerProps: ButtonLikeProps<'button', HTMLButtonElement> & MenubarTextValueOwnPropsProps for Menubar Sub Trigger.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
textValue- Text used for typeahead when rendered children are not plain text.
type- type?: "button" | "submit" | "reset" | undefined;
MenubarTriggertype
MenubarTrigger: { (props: MenubarTriggerProps): JSX.Element | null; (props: MenubarTriggerAsChildProps): JSX.Element | null; }Renders a part of menubar.
Supports polymorphic rendering via asChild.
MenubarTriggerAsChildPropstype
MenubarTriggerAsChildProps: ButtonLikeAsChildProps & MenubarTextValueOwnPropsProps for the asChild (polymorphic) rendering of Menubar Trigger.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
textValue- Text used for typeahead when rendered children are not plain text.
type- type?: undefined;
MenubarTriggerPropstype
MenubarTriggerProps: ButtonLikeProps<'button', HTMLButtonElement> & MenubarTextValueOwnPropsProps for Menubar Trigger.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
textValue- Text used for typeahead when rendered children are not plain text.
type- type?: "button" | "submit" | "reset" | undefined;
MenuContenttype
MenuContent: { (props: MenuContentProps): JSX.Element; (props: MenuContentAsChildProps): JSX.Element; }Renders the menu-content part of menu with role="menu".
Supports polymorphic rendering via asChild.
MenuContentAsChildPropstype
MenuContentAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Menu Content.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
MenuContentPropstype
MenuContentProps: BoxProps<'div', HTMLDivElement>Props for Menu Content.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
MenuGrouptype
MenuGroup: { (props: MenuGroupProps): JSX.Element; (props: MenuGroupAsChildProps): JSX.Element; }Renders the menu-group part of menu with role="group".
Supports polymorphic rendering via asChild.
MenuGroupAsChildPropstype
MenuGroupAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Menu Group.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
MenuGroupPropstype
MenuGroupProps: BoxProps<'div', HTMLDivElement>Props for Menu Group.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
MenuItemtype
MenuItem: { (props: MenuItemProps): JSX.Element | null; (props: MenuItemAsChildProps): JSX.Element | null; }Renders the menu-item part of menu with role="menuitem".
Supports polymorphic rendering via asChild.
MenuItemAsChildPropstype
MenuItemAsChildProps: Omit<ButtonLikeAsChildProps, 'onPress'> & MenuItemOwnPropsProps for the asChild (polymorphic) rendering of Menu Item.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onSelect- onSelect?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
textValue- Text used for typeahead when rendered children are not plain text.
type- type?: undefined;
MenuItemDescriptiontype
MenuItemDescription: { (props: MenuItemPartProps): JSX.Element; (props: MenuItemPartAsChildProps): JSX.Element; }Optional supporting description for a structured Menu Item.
MenuItemIcontype
MenuItemIcon: { (props: MenuItemPartProps): JSX.Element; (props: MenuItemPartAsChildProps): JSX.Element; }Optional leading visual for a Menu Item.
MenuItemLabeltype
MenuItemLabel: { (props: MenuItemPartProps): JSX.Element; (props: MenuItemPartAsChildProps): JSX.Element; }Primary visible label for a structured Menu Item.
MenuItemOwnPropstype
MenuItemOwnProps: {
children?: unknown;
disabled?: boolean;
onSelect?: (event: PressEvent) => void;
/** Text used for typeahead when rendered children are not plain text. */
textValue?: string;
}Own props for Menu Item, before merging with native element attributes.
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onSelect- onSelect?: ((event: PressEvent) => void) | undefined;
textValue- Text used for typeahead when rendered children are not plain text.
MenuItemPartAsChildPropstype
MenuItemPartAsChildProps: BoxAsChildPropsProps for a polymorphic presentational part within a Menu Item.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
MenuItemPartPropstype
MenuItemPartProps: BoxProps<'span', HTMLSpanElement>Props for a presentational part within a Menu Item.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLSpanElement>;
MenuItemPropstype
MenuItemProps: Omit<ButtonLikeProps<'button', HTMLButtonElement>, 'onPress'> & MenuItemOwnPropsProps for Menu Item.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
ref- ref?: Ref<HTMLButtonElement>;
textValue- Text used for typeahead when rendered children are not plain text.
type- type?: "button" | "submit" | "reset" | undefined;
MenuLabeltype
MenuLabel: { (props: MenuLabelProps): JSX.Element | null; (props: MenuLabelAsChildProps): JSX.Element | null; }Renders the menu-label part of menu.
Supports polymorphic rendering via asChild.
MenuLabelAsChildPropstype
MenuLabelAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Menu Label.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
MenuLabelPropstype
MenuLabelProps: BoxProps<'div', HTMLDivElement>Props for Menu Label.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
MenuOwnPropstype
MenuOwnProps: {
/** Supports literal, nested, array-mapped, and `For`-rendered descendants. */
children?: unknown;
id?: string;
orientation?: Orientation;
loop?: boolean;
}Own props for Menu, before merging with native element attributes.
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
id- id?: string | undefined;
loop- loop?: boolean | undefined;
orientation- orientation?: Orientation | undefined;
MenuPropstype
MenuProps: MenuOwnPropsProps for Menu.
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
id- id?: string | undefined;
loop- loop?: boolean | undefined;
orientation- orientation?: Orientation | undefined;
MenuSeparatortype
MenuSeparator: { (props: MenuSeparatorProps): JSX.Element | null; (props: MenuSeparatorAsChildProps): JSX.Element | null; }Renders the menu-separator part of menu with role="separator".
Supports polymorphic rendering via asChild.
MenuSeparatorAsChildPropstype
MenuSeparatorAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Menu Separator.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
MenuSeparatorPropstype
MenuSeparatorProps: BoxProps<'div', HTMLDivElement>Props for Menu Separator.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
OverlayHosttype
OverlayHost: (props: OverlayHostProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementOverlayHostPropstype
OverlayHostProps: {
children?: unknown;
}children- children?: unknown;
Popovertype
Popover: (props: PopoverProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementRenders a part of popover.
PopoverClosetype
PopoverClose: { (props: PopoverCloseProps): JSX.Element; (props: PopoverCloseAsChildProps): JSX.Element; }Renders the popover-close part of popover.
Supports polymorphic rendering via asChild.
PopoverCloseAsChildPropstype
PopoverCloseAsChildProps: ButtonLikeAsChildPropsProps for the asChild (polymorphic) rendering of Popover Close.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
type- type?: undefined;
PopoverClosePropstype
PopoverCloseProps: ButtonLikeProps<'button', HTMLButtonElement>Props for Popover Close.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
type- type?: "button" | "submit" | "reset" | undefined;
PopoverContenttype
PopoverContent: { (props: PopoverContentProps): JSX.Element | null; (props: PopoverContentAsChildProps): JSX.Element | null; }Renders the popover-content part of popover with role="dialog".
Supports polymorphic rendering via asChild.
PopoverContentAsChildPropstype
PopoverContentAsChildProps: BoxAsChildProps & PopoverContentOwnPropsProps for the asChild (polymorphic) rendering of Popover Content.
align- align?: OverlayAlign | undefined;
asChild- asChild: true;
children- children: JSXElement;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<Element>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
width- width?: PopoverContentWidth | undefined;
PopoverContentOwnPropstype
PopoverContentOwnProps: {
forceMount?: boolean;
side?: OverlaySide;
align?: OverlayAlign;
sideOffset?: number;
width?: PopoverContentWidth;
}Own props for Popover Content, before merging with native element attributes.
align- align?: OverlayAlign | undefined;
forceMount- forceMount?: boolean | undefined;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
width- width?: PopoverContentWidth | undefined;
PopoverContentPropstype
PopoverContentProps: BoxProps<'div', HTMLDivElement> & PopoverContentOwnPropsProps for Popover Content.
align- align?: OverlayAlign | undefined;
asChild- asChild?: false | undefined;
children- children?: unknown;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
width- width?: PopoverContentWidth | undefined;
PopoverContentWidthtype
PopoverContentWidth: 'sm' | 'md' | 'lg'Popover Content Width.
PopoverOwnPropstype
PopoverOwnProps: {
children?: unknown;
id?: string;
open?: boolean;
defaultOpen?: boolean;
onOpenChange?: (open: boolean) => void;
}Own props for Popover, before merging with native element attributes.
children- children?: unknown;
defaultOpen- defaultOpen?: boolean | undefined;
id- id?: string | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
open- open?: boolean | undefined;
PopoverPortaltype
PopoverPortal: (props: PopoverPortalProps) => JSX.Element | nullRenders a part of popover.
PopoverPortalPropstype
PopoverPortalProps: {
children?: unknown;
}Props for Popover Portal.
children- children?: unknown;
PopoverPropstype
PopoverProps: PopoverOwnPropsProps for Popover.
children- children?: unknown;
defaultOpen- defaultOpen?: boolean | undefined;
id- id?: string | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
open- open?: boolean | undefined;
PopoverTriggertype
PopoverTrigger: { (props: PopoverTriggerProps): JSX.Element; (props: PopoverTriggerAsChildProps): JSX.Element; }Renders the popover-trigger part of popover.
Supports polymorphic rendering via asChild.
PopoverTriggerAsChildPropstype
PopoverTriggerAsChildProps: ButtonLikeAsChildPropsProps for the asChild (polymorphic) rendering of Popover Trigger.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
type- type?: undefined;
PopoverTriggerPropstype
PopoverTriggerProps: ButtonLikeProps<'button', HTMLButtonElement>Props for Popover Trigger.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
type- type?: "button" | "submit" | "reset" | undefined;
PressEventtype
PressEvent: {
preventDefault?: () => void;
stopPropagation?: () => void;
defaultPrevented?: boolean;
}Press event passed to onPress handler Compatible with the pressable foundation's PressEvent type.
Progresstype
Progress: (props: ProgressProps) => JSX.ElementRenders the progress part of progress with role="progressbar".
ProgressCircletype
ProgressCircle: (props: ProgressCircleProps) => JSX.ElementHeadless circular progress indicator root.
Normalizes value/max, computes percentage, exposes --ak-progress-percentage
as a dynamically injected CSS custom property, and provides progress state
to ProgressCircleIndicator via context.
ProgressCircleIndicatortype
ProgressCircleIndicator: { (props: ProgressCircleIndicatorProps): JSX.Element; (props: ProgressCircleIndicatorAsChildProps): JSX.Element; }Visual indicator for ProgressCircle, rendering the fill/arc element.
Must be used within a ProgressCircle; reads progress state from context
and exposes it as data-state/data-value/data-max/data-percentage.
ProgressCircleIndicatorAsChildPropstype
ProgressCircleIndicatorAsChildProps: BoxAsChildPropsProps for ProgressCircleIndicator rendered polymorphically via asChild.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
ProgressCircleIndicatorPropstype
ProgressCircleIndicatorProps: BoxProps<'div', HTMLDivElement>Props for ProgressCircleIndicator rendered as a native div.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
ProgressCircleOwnPropstype
ProgressCircleOwnProps: {
children?: unknown;
id?: string;
value?: number | null;
max?: number;
getValueLabel?: (value: number | null, max: number) => string;
}Props specific to ProgressCircle, before merging with native div attributes.
children- children?: unknown;
getValueLabel- getValueLabel?: ((value: number | null, max: number) => string) | undefined;
id- id?: string | undefined;
max- max?: number | undefined;
value- value?: number | null | undefined;
ProgressCirclePropstype
ProgressCircleProps: BoxProps<'div', HTMLDivElement> & ProgressCircleOwnPropsProps for ProgressCircle, combining native div attributes with ProgressCircleOwnProps.
asChild- asChild?: false | undefined;
children- children?: unknown;
getValueLabel- getValueLabel?: ((value: number | null, max: number) => string) | undefined;
id- id?: string | undefined;
max- max?: number | undefined;
ref- ref?: Ref<HTMLDivElement>;
value- value?: number | null | undefined;
ProgressIndicatortype
ProgressIndicator: { (props: ProgressIndicatorProps): JSX.Element; (props: ProgressIndicatorAsChildProps): JSX.Element; }Renders the progress-indicator part of progress.
Supports polymorphic rendering via asChild.
ProgressIndicatorAsChildPropstype
ProgressIndicatorAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Progress Indicator.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
ProgressIndicatorPropstype
ProgressIndicatorProps: BoxProps<'div', HTMLDivElement>Props for Progress Indicator.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
ProgressOwnPropstype
ProgressOwnProps: {
children?: unknown;
id?: string;
value?: number | null;
max?: number;
getValueLabel?: (value: number | null, max: number) => string;
}Own props for Progress, before merging with native element attributes.
children- children?: unknown;
getValueLabel- getValueLabel?: ((value: number | null, max: number) => string) | undefined;
id- id?: string | undefined;
max- max?: number | undefined;
value- value?: number | null | undefined;
ProgressPropstype
ProgressProps: BoxProps<'div', HTMLDivElement> & ProgressOwnPropsProps for Progress.
asChild- asChild?: false | undefined;
children- children?: unknown;
getValueLabel- getValueLabel?: ((value: number | null, max: number) => string) | undefined;
id- id?: string | undefined;
max- max?: number | undefined;
ref- ref?: Ref<HTMLDivElement>;
value- value?: number | null | undefined;
RadioGrouptype
RadioGroup: (props: RadioGroupProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementRenders a part of radio-group.
RadioGroupItemtype
RadioGroupItem: { (props: RadioGroupItemProps): JSX.Element; (props: RadioGroupItemAsChildProps): JSX.Element; }Renders the radio-group-item part of radio-group with role="radio".
Supports polymorphic rendering via asChild.
RadioGroupItemAsChildPropstype
RadioGroupItemAsChildProps: RadioGroupItemOwnProps & {
asChild: true;
children: JSXElement;
ref?: Ref<Element>;
}Props for the asChild (polymorphic) rendering of Radio Group Item.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
ref- ref?: Ref<Element>;
value- value: string;
RadioGroupItemOwnPropstype
RadioGroupItemOwnProps: {
value: string;
disabled?: boolean;
children?: unknown;
}Own props for Radio Group Item, before merging with native element attributes.
children- children?: unknown;
disabled- disabled?: boolean | undefined;
value- value: string;
RadioGroupItemPropstype
RadioGroupItemProps: Omit<JSX.IntrinsicElements['button'], 'children' | 'ref' | 'onClick' | 'type' | 'value'> & RadioGroupItemOwnProps & {
asChild?: false;
ref?: Ref<HTMLButtonElement>;
}Props for Radio Group Item.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLButtonElement>;
value- value: string;
RadioGroupOwnPropstype
RadioGroupOwnProps: {
value?: string;
defaultValue?: string;
onValueChange?: (value: string) => void;
disabled?: boolean;
name?: string;
orientation?: Orientation;
loop?: boolean;
/** Supports literal, nested, array-mapped, and `For`-rendered descendants. */
children?: unknown;
}Own props for Radio Group, before merging with native element attributes.
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
defaultValue- defaultValue?: string | undefined;
disabled- disabled?: boolean | undefined;
loop- loop?: boolean | undefined;
name- name?: string | undefined;
onValueChange- onValueChange?: ((value: string) => void) | undefined;
orientation- orientation?: Orientation | undefined;
value- value?: string | undefined;
RadioGroupPropstype
RadioGroupProps: Omit<JSX.IntrinsicElements['div'], 'children' | 'ref'> & RadioGroupOwnProps & {
ref?: Ref<HTMLDivElement>;
}Props for Radio Group.
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
defaultValue- defaultValue?: string | undefined;
disabled- disabled?: boolean | undefined;
loop- loop?: boolean | undefined;
name- name?: string | undefined;
onValueChange- onValueChange?: ((value: string) => void) | undefined;
orientation- orientation?: Orientation | undefined;
ref- ref?: Ref<HTMLDivElement>;
value- value?: string | undefined;
ScrollAreatype
ScrollArea: { (props: ScrollAreaProps): JSX.Element; (props: ScrollAreaAsChildProps): JSX.Element; }Renders a part of scroll-area.
ScrollAreaAsChildPropstype
ScrollAreaAsChildProps: ScrollAreaOwnProps & {
asChild: true;
children: JSX.Element;
}Props for the asChild (polymorphic) rendering of Scroll Area.
asChild- asChild: true;
children- children: JSX.Element;
id- id?: string | undefined;
ScrollAreaCornertype
ScrollAreaCorner: (props: ScrollAreaCornerProps) => JSX.ElementRenders the scroll-area-corner part of scroll-area.
ScrollAreaCornerPropstype
ScrollAreaCornerProps: BoxProps<'div', HTMLDivElement>Props for Scroll Area Corner.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
ScrollAreaOwnPropstype
ScrollAreaOwnProps: {
children?: unknown;
id?: string;
}Own props for Scroll Area, before merging with native element attributes.
children- children?: unknown;
id- id?: string | undefined;
ScrollAreaPropstype
ScrollAreaProps: ScrollAreaOwnPropsProps for Scroll Area.
children- children?: unknown;
id- id?: string | undefined;
ScrollAreaScrollbartype
ScrollAreaScrollbar: (props: ScrollAreaScrollbarProps) => JSX.ElementRenders the scroll-area-scrollbar part of scroll-area with role="scrollbar".
ScrollAreaScrollbarPropstype
ScrollAreaScrollbarProps: BoxProps<'div', HTMLDivElement> & {
orientation?: 'vertical' | 'horizontal';
}Props for Scroll Area Scrollbar.
asChild- asChild?: false | undefined;
children- children?: unknown;
orientation- orientation?: "vertical" | "horizontal" | undefined;
ref- ref?: Ref<HTMLDivElement>;
ScrollAreaThumbtype
ScrollAreaThumb: (props: ScrollAreaThumbProps) => JSX.ElementRenders the scroll-area-thumb part of scroll-area.
ScrollAreaThumbPropstype
ScrollAreaThumbProps: BoxProps<'div', HTMLDivElement>Props for Scroll Area Thumb.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
ScrollAreaViewporttype
ScrollAreaViewport: { (props: ScrollAreaViewportProps): JSX.Element; (props: ScrollAreaViewportAsChildProps): JSX.Element; }Renders a part of scroll-area.
ScrollAreaViewportAsChildPropstype
ScrollAreaViewportAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Scroll Area Viewport.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
ScrollAreaViewportPropstype
ScrollAreaViewportProps: BoxProps<'div', HTMLDivElement>Props for Scroll Area Viewport.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
Selecttype
Select: (props: SelectProps) => JSX.ElementRenders a part of select.
SelectContenttype
SelectContent: { (props: SelectContentProps): JSX.Element | null; (props: SelectContentAsChildProps): JSX.Element | null; }Renders a part of select with role="listbox".
Supports polymorphic rendering via asChild.
SelectContentAsChildPropstype
SelectContentAsChildProps: BoxAsChildProps & SelectContentOwnPropsProps for the asChild (polymorphic) rendering of Select Content.
align- align?: OverlayAlign | undefined;
asChild- asChild: true;
children- children: JSXElement;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<Element>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
SelectContentOwnPropstype
SelectContentOwnProps: {
forceMount?: boolean;
side?: OverlaySide;
align?: OverlayAlign;
sideOffset?: number;
}Own props for Select Content, before merging with native element attributes.
align- align?: OverlayAlign | undefined;
forceMount- forceMount?: boolean | undefined;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
SelectContentPropstype
SelectContentProps: BoxProps<'div', HTMLDivElement> & SelectContentOwnPropsProps for Select Content.
align- align?: OverlayAlign | undefined;
asChild- asChild?: false | undefined;
children- children?: unknown;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
SelectGrouptype
SelectGroup: { (props: SelectGroupProps): JSX.Element; (props: SelectGroupAsChildProps): JSX.Element; }Renders the select-group part of select with role="group".
Supports polymorphic rendering via asChild.
SelectGroupAsChildPropstype
SelectGroupAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Select Group.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
SelectGroupPropstype
SelectGroupProps: BoxProps<'div', HTMLDivElement>Props for Select Group.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
SelectItemtype
SelectItem: { (props: SelectItemProps): JSX.Element | null; (props: SelectItemAsChildProps): JSX.Element | null; }Renders a part of select.
Supports polymorphic rendering via asChild.
SelectItemAsChildPropstype
SelectItemAsChildProps: Omit<ButtonLikeAsChildProps, 'onPress'> & SelectItemOwnPropsProps for the asChild (polymorphic) rendering of Select Item.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
ref- ref?: Ref<Element>;
textValue- textValue?: string | undefined;
type- type?: undefined;
value- value: string;
SelectItemOwnPropstype
SelectItemOwnProps: {
children?: unknown;
disabled?: boolean;
textValue?: string;
value: string;
}Own props for Select Item, before merging with native element attributes.
children- children?: unknown;
disabled- disabled?: boolean | undefined;
textValue- textValue?: string | undefined;
value- value: string;
SelectItemPropstype
SelectItemProps: Omit<ButtonLikeProps<'button', HTMLButtonElement>, 'onPress'> & SelectItemOwnPropsProps for Select Item.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
ref- ref?: Ref<HTMLButtonElement>;
textValue- textValue?: string | undefined;
type- type?: "button" | "submit" | "reset" | undefined;
SelectItemTexttype
SelectItemText: { (props: SelectItemTextProps): JSX.Element; (props: SelectItemTextAsChildProps): JSX.Element; }SelectItemText marks the item text node so Select can resolve labels and
style the text slot directly.
Renders the select-item-text part of select.
Supports polymorphic rendering via asChild.
SelectItemTextAsChildPropstype
SelectItemTextAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Select Item Text.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
SelectItemTextPropstype
SelectItemTextProps: BoxProps<'span', HTMLSpanElement>Props for Select Item Text.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLSpanElement>;
SelectLabeltype
SelectLabel: { (props: SelectLabelProps): JSX.Element | null; (props: SelectLabelAsChildProps): JSX.Element | null; }Renders the select-label part of select.
Supports polymorphic rendering via asChild.
SelectLabelAsChildPropstype
SelectLabelAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Select Label.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
SelectLabelPropstype
SelectLabelProps: BoxProps<'div', HTMLDivElement>Props for Select Label.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
SelectOwnPropstype
SelectOwnProps: {
/** Supports literal, nested, array-mapped, and `For`-rendered descendants. */
children?: unknown;
id?: string;
value?: string;
defaultValue?: string;
onValueChange?: (value: string) => void;
open?: boolean;
defaultOpen?: boolean;
onOpenChange?: (open: boolean) => void;
name?: string;
disabled?: boolean;
}Own props for Select, before merging with native element attributes.
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
defaultOpen- defaultOpen?: boolean | undefined;
defaultValue- defaultValue?: string | undefined;
disabled- disabled?: boolean | undefined;
id- id?: string | undefined;
name- name?: string | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
onValueChange- onValueChange?: ((value: string) => void) | undefined;
open- open?: boolean | undefined;
value- value?: string | undefined;
SelectPortaltype
SelectPortal: (props: SelectPortalProps) => JSX.Element | nullRenders a part of select.
SelectPortalPropstype
SelectPortalProps: {
children?: unknown;
}Props for Select Portal.
children- children?: unknown;
SelectPropstype
SelectProps: SelectOwnPropsProps for Select.
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
defaultOpen- defaultOpen?: boolean | undefined;
defaultValue- defaultValue?: string | undefined;
disabled- disabled?: boolean | undefined;
id- id?: string | undefined;
name- name?: string | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
onValueChange- onValueChange?: ((value: string) => void) | undefined;
open- open?: boolean | undefined;
value- value?: string | undefined;
SelectSeparatortype
SelectSeparator: { (props: SelectSeparatorProps): JSX.Element | null; (props: SelectSeparatorAsChildProps): JSX.Element | null; }Renders the select-separator part of select with role="separator".
Supports polymorphic rendering via asChild.
SelectSeparatorAsChildPropstype
SelectSeparatorAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Select Separator.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
SelectSeparatorPropstype
SelectSeparatorProps: BoxProps<'div', HTMLDivElement>Props for Select Separator.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
SelectTriggertype
SelectTrigger: { (props: SelectTriggerProps): JSX.Element | null; (props: SelectTriggerAsChildProps): JSX.Element | null; }Renders the select-trigger part of select.
Supports polymorphic rendering via asChild.
SelectTriggerAsChildPropstype
SelectTriggerAsChildProps: ButtonLikeAsChildProps & SelectTriggerOwnPropsProps for the asChild (polymorphic) rendering of Select Trigger.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
size- size?: SelectTriggerSize | undefined;
type- type?: undefined;
SelectTriggerOwnPropstype
SelectTriggerOwnProps: {
size?: SelectTriggerSize;
}Own props for Select Trigger, before merging with native element attributes.
size- size?: SelectTriggerSize | undefined;
SelectTriggerPropstype
SelectTriggerProps: ButtonLikeProps<'button', HTMLButtonElement> & SelectTriggerOwnPropsProps for Select Trigger.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
size- size?: SelectTriggerSize | undefined;
type- type?: "button" | "submit" | "reset" | undefined;
SelectTriggerSizetype
SelectTriggerSize: 'sm' | 'md' | 'lg'Select Trigger Size.
SelectValuetype
SelectValue: { (props: SelectValueProps): JSX.Element | null; (props: SelectValueAsChildProps): JSX.Element | null; }Renders the select-value part of select.
Supports polymorphic rendering via asChild.
SelectValueAsChildPropstype
SelectValueAsChildProps: BoxAsChildProps & SelectValueOwnPropsProps for the asChild (polymorphic) rendering of Select Value.
asChild- asChild: true;
children- children: JSXElement;
placeholder- placeholder?: string | undefined;
ref- ref?: Ref<Element>;
SelectValueOwnPropstype
SelectValueOwnProps: {
placeholder?: string;
children?: unknown;
}Own props for Select Value, before merging with native element attributes.
children- children?: unknown;
placeholder- placeholder?: string | undefined;
SelectValuePropstype
SelectValueProps: BoxProps<'span', HTMLSpanElement> & SelectValueOwnPropsProps for Select Value.
asChild- asChild?: false | undefined;
children- children?: unknown;
placeholder- placeholder?: string | undefined;
ref- ref?: Ref<HTMLSpanElement>;
Slidertype
Slider: (props: SliderProps) => JSX.ElementRenders the slider part of slider.
SliderOrientationtype
SliderOrientation: 'horizontal' | 'vertical'Slider Orientation.
SliderOwnPropstype
SliderOwnProps: {
/** Supports literal, nested, array-mapped, and `For`-rendered descendants. */
children?: unknown;
id?: string;
value?: number;
defaultValue?: number;
onValueChange?: (value: number) => void;
min?: number;
max?: number;
step?: number;
orientation?: SliderOrientation;
disabled?: boolean;
name?: string;
}Own props for Slider, before merging with native element attributes.
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
defaultValue- defaultValue?: number | undefined;
disabled- disabled?: boolean | undefined;
id- id?: string | undefined;
max- max?: number | undefined;
min- min?: number | undefined;
name- name?: string | undefined;
onValueChange- onValueChange?: ((value: number) => void) | undefined;
orientation- orientation?: SliderOrientation | undefined;
step- step?: number | undefined;
value- value?: number | undefined;
SliderPropstype
SliderProps: BoxProps<'div', HTMLDivElement> & SliderOwnPropsProps for Slider.
asChild- asChild?: false | undefined;
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
defaultValue- defaultValue?: number | undefined;
disabled- disabled?: boolean | undefined;
id- id?: string | undefined;
max- max?: number | undefined;
min- min?: number | undefined;
name- name?: string | undefined;
onValueChange- onValueChange?: ((value: number) => void) | undefined;
orientation- orientation?: SliderOrientation | undefined;
ref- ref?: Ref<HTMLDivElement>;
step- step?: number | undefined;
value- value?: number | undefined;
SliderRangetype
SliderRange: { (props: SliderRangeProps): JSX.Element; (props: SliderRangeAsChildProps): JSX.Element; }Renders the slider-range part of slider.
Supports polymorphic rendering via asChild.
SliderRangeAsChildPropstype
SliderRangeAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Slider Range.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
SliderRangePropstype
SliderRangeProps: BoxProps<'div', HTMLDivElement>Props for Slider Range.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
SliderThumbtype
SliderThumb: { (props: SliderThumbProps): JSX.Element; (props: SliderThumbAsChildProps): JSX.Element; }Renders the slider-thumb part of slider with role="slider".
Supports polymorphic rendering via asChild.
SliderThumbAsChildPropstype
SliderThumbAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Slider Thumb.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
SliderThumbPropstype
SliderThumbProps: BoxProps<'div', HTMLDivElement>Props for Slider Thumb.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
SliderTracktype
SliderTrack: { (props: SliderTrackProps): JSX.Element; (props: SliderTrackAsChildProps): JSX.Element; }Renders the slider-track part of slider.
Supports polymorphic rendering via asChild.
SliderTrackAsChildPropstype
SliderTrackAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Slider Track.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
SliderTrackPropstype
SliderTrackProps: BoxProps<'div', HTMLDivElement>Props for Slider Track.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
Switchtype
Switch: { (props: SwitchButtonProps): JSX.Element; (props: SwitchAsChildProps): JSX.Element; }Renders the switch part of switch with role="switch".
Supports polymorphic rendering via asChild.
SwitchAsChildPropstype
SwitchAsChildProps: SwitchOwnProps & {
asChild: true;
children: JSXElement;
ref?: Ref<Element>;
type?: never;
}Props for the asChild (polymorphic) rendering of Switch.
asChild- asChild: true;
checked- checked?: boolean | undefined;
children- children: JSXElement;
defaultChecked- defaultChecked?: boolean | undefined;
disabled- disabled?: boolean | undefined;
name- name?: string | undefined;
onCheckedChange- onCheckedChange?: ((checked: boolean) => void) | undefined;
ref- ref?: Ref<Element>;
required- required?: boolean | undefined;
type- type?: undefined;
value- value?: string | undefined;
SwitchButtonPropstype
SwitchButtonProps: Omit<JSX.IntrinsicElements['button'], 'children' | 'onClick' | 'type' | 'ref'> & SwitchOwnProps & {
asChild?: false;
ref?: Ref<HTMLButtonElement>;
type?: 'button' | 'submit' | 'reset';
}Props for Switch Button.
asChild- asChild?: false | undefined;
checked- checked?: boolean | undefined;
children- children?: unknown;
defaultChecked- defaultChecked?: boolean | undefined;
onCheckedChange- onCheckedChange?: ((checked: boolean) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
required- required?: boolean | undefined;
type- type?: "button" | "submit" | "reset" | undefined;
SwitchOwnPropstype
SwitchOwnProps: {
children?: unknown;
checked?: boolean;
defaultChecked?: boolean;
onCheckedChange?: (checked: boolean) => void;
disabled?: boolean;
required?: boolean;
name?: string;
value?: string;
}Own props for Switch, before merging with native element attributes.
checked- checked?: boolean | undefined;
children- children?: unknown;
defaultChecked- defaultChecked?: boolean | undefined;
disabled- disabled?: boolean | undefined;
name- name?: string | undefined;
onCheckedChange- onCheckedChange?: ((checked: boolean) => void) | undefined;
required- required?: boolean | undefined;
value- value?: string | undefined;
SwitchPropstype
SwitchProps: SwitchButtonProps | SwitchAsChildPropsProps for Switch.
asChild- asChild?: boolean | undefined;
checked- checked?: boolean | undefined;
children- children?: unknown;
defaultChecked- defaultChecked?: boolean | undefined;
onCheckedChange- onCheckedChange?: ((checked: boolean) => void) | undefined;
ref- ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLButtonElement | null) => void) | { current: HTMLButtonElement | null; } | null | undefined;
required- required?: boolean | undefined;
type- type?: "button" | "submit" | "reset" | undefined;
Tabletype
Table: { (props: TableProps): JSX.Element; (props: TableAsChildProps): JSX.Element; }Semantic table primitive family.
Renders a part of table.
Supports polymorphic rendering via asChild.
TableAsChildPropstype
TableAsChildProps: TableAsChildBasePropsProps for the asChild (polymorphic) rendering of Table.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
TableBodytype
TableBody: { (props: TableBodyProps): JSX.Element; (props: TableBodyAsChildProps): JSX.Element; }Renders a part of table.
Supports polymorphic rendering via asChild.
TableBodyAsChildPropstype
TableBodyAsChildProps: TableAsChildBasePropsProps for the asChild (polymorphic) rendering of Table Body.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
TableBodyPropstype
TableBodyProps: TableNativeProps<'tbody', HTMLTableSectionElement> | TableBodyAsChildPropsProps for Table Body.
asChild- asChild?: boolean | undefined;
children- children?: unknown;
ref- ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTableSectionElement | null) => void) | { current: HTMLTableSectionElement | null; } | null | undefined;
TableCaptiontype
TableCaption: { (props: TableCaptionProps): JSX.Element; (props: TableCaptionAsChildProps): JSX.Element; }Renders a part of table.
Supports polymorphic rendering via asChild.
TableCaptionAsChildPropstype
TableCaptionAsChildProps: TableAsChildBasePropsProps for the asChild (polymorphic) rendering of Table Caption.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
TableCaptionPropstype
TableCaptionProps: TableNativeProps<'caption', HTMLTableCaptionElement> | TableCaptionAsChildPropsProps for Table Caption.
asChild- asChild?: boolean | undefined;
children- children?: unknown;
ref- ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTableCaptionElement | null) => void) | { current: HTMLTableCaptionElement | null; } | null | undefined;
TableCelltype
TableCell: { (props: TableCellProps): JSX.Element; (props: TableCellAsChildProps): JSX.Element; }Renders a part of table.
Supports polymorphic rendering via asChild.
TableCellAsChildPropstype
TableCellAsChildProps: TableAsChildBasePropsProps for the asChild (polymorphic) rendering of Table Cell.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
TableCellPropstype
TableCellProps: TableNativeProps<'td', HTMLTableCellElement> | TableCellAsChildPropsProps for Table Cell.
asChild- asChild?: boolean | undefined;
children- children?: unknown;
ref- ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTableCellElement | null) => void) | { current: HTMLTableCellElement | null; } | null | undefined;
TableFoottype
TableFoot: { (props: TableFootProps): JSX.Element; (props: TableFootAsChildProps): JSX.Element; }Renders a part of table.
Supports polymorphic rendering via asChild.
TableFootAsChildPropstype
TableFootAsChildProps: TableAsChildBasePropsProps for the asChild (polymorphic) rendering of Table Foot.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
TableFootPropstype
TableFootProps: TableNativeProps<'tfoot', HTMLTableSectionElement> | TableFootAsChildPropsProps for Table Foot.
asChild- asChild?: boolean | undefined;
children- children?: unknown;
ref- ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTableSectionElement | null) => void) | { current: HTMLTableSectionElement | null; } | null | undefined;
TableHeadtype
TableHead: { (props: TableHeadProps): JSX.Element; (props: TableHeadAsChildProps): JSX.Element; }Renders a part of table.
Supports polymorphic rendering via asChild.
TableHeadAsChildPropstype
TableHeadAsChildProps: TableAsChildBasePropsProps for the asChild (polymorphic) rendering of Table Head.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
TableHeaderCelltype
TableHeaderCell: { (props: TableHeaderCellProps): JSX.Element; (props: TableHeaderCellAsChildProps): JSX.Element; }Renders a part of table.
Supports polymorphic rendering via asChild.
TableHeaderCellAsChildPropstype
TableHeaderCellAsChildProps: TableAsChildBasePropsProps for the asChild (polymorphic) rendering of Table Header Cell.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
TableHeaderCellPropstype
TableHeaderCellProps: TableNativeProps<'th', HTMLTableCellElement> | TableHeaderCellAsChildPropsProps for Table Header Cell.
asChild- asChild?: boolean | undefined;
children- children?: unknown;
ref- ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTableCellElement | null) => void) | { current: HTMLTableCellElement | null; } | null | undefined;
TableHeadPropstype
TableHeadProps: TableNativeProps<'thead', HTMLTableSectionElement> | TableHeadAsChildPropsProps for Table Head.
asChild- asChild?: boolean | undefined;
children- children?: unknown;
ref- ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTableSectionElement | null) => void) | { current: HTMLTableSectionElement | null; } | null | undefined;
TablePropstype
TableProps: TableNativeProps<'table', HTMLTableElement> | TableAsChildBasePropsProps for Table.
asChild- asChild?: boolean | undefined;
children- children?: unknown;
ref- ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTableElement | null) => void) | { current: HTMLTableElement | null; } | null | undefined;
TableRowtype
TableRow: { (props: TableRowProps): JSX.Element; (props: TableRowAsChildProps): JSX.Element; }Renders a part of table.
Supports polymorphic rendering via asChild.
TableRowAsChildPropstype
TableRowAsChildProps: TableAsChildBasePropsProps for the asChild (polymorphic) rendering of Table Row.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
TableRowPropstype
TableRowProps: TableNativeProps<'tr', HTMLTableRowElement> | TableRowAsChildPropsProps for Table Row.
asChild- asChild?: boolean | undefined;
children- children?: unknown;
ref- ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTableRowElement | null) => void) | { current: HTMLTableRowElement | null; } | null | undefined;
Textareatype
Textarea: { (props: TextareaElementProps): JSX.Element; (props: TextareaAsChildProps): JSX.Element; }Renders the textarea part of textarea.
Supports polymorphic rendering via asChild.
TextareaAsChildPropstype
TextareaAsChildProps: TextareaOwnProps & {
asChild: true;
children: JSXElement;
ref?: Ref<Element>;
}Props for the asChild (polymorphic) rendering of Textarea.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
ref- ref?: Ref<Element>;
tabIndex- tabIndex?: number | undefined;
TextareaElementPropstype
TextareaElementProps: Omit<JSX.IntrinsicElements['textarea'], 'children' | 'ref'> & TextareaOwnProps & {
asChild?: false;
ref?: Ref<HTMLTextAreaElement>;
}Props for Textarea Element.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLTextAreaElement>;
TextareaOwnPropstype
TextareaOwnProps: {
children?: unknown;
disabled?: boolean;
tabIndex?: number;
}Own props for Textarea, before merging with native element attributes.
children- children?: unknown;
disabled- disabled?: boolean | undefined;
tabIndex- tabIndex?: number | undefined;
TextareaPropstype
TextareaProps: TextareaElementProps | TextareaAsChildPropsProps for Textarea.
asChild- asChild?: boolean | undefined;
children- children?: unknown;
ref- ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTextAreaElement | null) => void) | { current: HTMLTextAreaElement | null; } | null | undefined;
Toasttype
Toast: (props: ToastProps) => JSX.Element | nullToast registers a notification entry with the host and returns no DOM on its own.
ToastActiontype
ToastAction: { (props: ToastActionProps): JSX.Element; (props: ToastActionAsChildProps): JSX.Element; }ToastAction closes the toast after handling a user-triggered action.
Renders the toast-action part of toast.
Supports polymorphic rendering via asChild.
ToastActionAsChildPropstype
ToastActionAsChildProps: ButtonLikeAsChildPropsProps for the asChild (polymorphic) rendering of Toast Action.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
type- type?: undefined;
ToastActionPropstype
ToastActionProps: ButtonLikeProps<'button', HTMLButtonElement>Props for Toast Action.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
type- type?: "button" | "submit" | "reset" | undefined;
ToastClosetype
ToastClose: { (props: ToastCloseProps): JSX.Element; (props: ToastCloseAsChildProps): JSX.Element; }ToastClose is the dedicated dismiss control for a toast entry.
Renders the toast-close part of toast.
Supports polymorphic rendering via asChild.
ToastCloseAsChildPropstype
ToastCloseAsChildProps: ButtonLikeAsChildPropsProps for the asChild (polymorphic) rendering of Toast Close.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
type- type?: undefined;
ToastClosePropstype
ToastCloseProps: ButtonLikeProps<'button', HTMLButtonElement>Props for Toast Close.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
type- type?: "button" | "submit" | "reset" | undefined;
ToastDescriptiontype
ToastDescription: { (props: ToastDescriptionProps): JSX.Element; (props: ToastDescriptionAsChildProps): JSX.Element; }ToastDescription marks the accessible description slot for a toast entry.
Renders the toast-description part of toast.
Supports polymorphic rendering via asChild.
ToastDescriptionAsChildPropstype
ToastDescriptionAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Toast Description.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
ToastDescriptionPropstype
ToastDescriptionProps: BoxProps<'div', HTMLDivElement>Props for Toast Description.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
ToastHosttype
ToastHost: (props: ToastHostProps) => JSX.ElementToastHost owns the registry of active toast entries and the default display duration for the family.
ToastHostOwnPropstype
ToastHostOwnProps: {
children?: unknown;
id?: string;
duration?: number;
}Props for the host that owns toast timing defaults and the registry.
children- children?: unknown;
duration- duration?: number | undefined;
id- id?: string | undefined;
ToastHostPropstype
ToastHostProps: BoxProps<'div', HTMLDivElement> & ToastHostOwnPropsProps for Toast Host.
asChild- asChild?: false | undefined;
children- children?: unknown;
duration- duration?: number | undefined;
id- id?: string | undefined;
ref- ref?: Ref<HTMLDivElement>;
ToastOwnPropstype
ToastOwnProps: {
children?: unknown;
id?: string;
open?: boolean;
defaultOpen?: boolean;
onOpenChange?: (open: boolean) => void;
duration?: number;
variant?: ToastVariant;
}Props for a toast registration entry declared through Toast.
children- children?: unknown;
defaultOpen- defaultOpen?: boolean | undefined;
duration- duration?: number | undefined;
id- id?: string | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
open- open?: boolean | undefined;
variant- variant?: ToastVariant | undefined;
ToastPropstype
ToastProps: BoxProps<'div', HTMLDivElement> & ToastOwnPropsProps for Toast.
asChild- asChild?: false | undefined;
children- children?: unknown;
defaultOpen- defaultOpen?: boolean | undefined;
duration- duration?: number | undefined;
id- id?: string | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
open- open?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
variant- variant?: ToastVariant | undefined;
ToastTitletype
ToastTitle: { (props: ToastTitleProps): JSX.Element; (props: ToastTitleAsChildProps): JSX.Element; }ToastTitle marks the accessible title slot for a toast entry.
Renders the toast-title part of toast.
Supports polymorphic rendering via asChild.
ToastTitleAsChildPropstype
ToastTitleAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Toast Title.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
ToastTitlePropstype
ToastTitleProps: BoxProps<'div', HTMLDivElement>Props for Toast Title.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
ToastViewporttype
ToastViewport: { (props: ToastViewportProps): JSX.Element; (props: ToastViewportAsChildProps): JSX.Element; }ToastViewport renders the live toast stack and the notification region.
Renders the toast-viewport part of toast with role="region".
Supports polymorphic rendering via asChild.
ToastViewportAsChildPropstype
ToastViewportAsChildProps: BoxAsChildPropsProps for the asChild (polymorphic) rendering of Toast Viewport.
asChild- asChild: true;
children- children: JSXElement;
ref- ref?: Ref<Element>;
ToastViewportPropstype
ToastViewportProps: BoxProps<'div', HTMLDivElement>Props for Toast Viewport.
asChild- asChild?: false | undefined;
children- children?: unknown;
ref- ref?: Ref<HTMLDivElement>;
Toggletype
Toggle: { (props: ToggleButtonProps): JSX.Element; (props: ToggleAsChildProps): JSX.Element; }Headless Toggle component
## Responsibilities
- Compose pressable foundation for interaction behavior
- Apply aria-pressed for toggle state signaling
- Enforce type="button" default to prevent accidental form submission
- Forward props and refs to native button or child element
## Non-Responsibilities (delegated to pressable foundation)
- Keyboard event handling (Enter/Space)
- Pointer event handling
- Disabled state enforcement
- Role attribute application (for non-native elements)
## Invariants
- MUST NOT contain any event handler logic
- MUST NOT check disabled or pressed props directly
- MUST use pressable() for ALL interaction behavior
- MUST use mergeProps() for ALL prop composition
- pressed state is CONTROLLED (consumer manages state)
Renders the toggle part of toggle.
Supports polymorphic rendering via asChild.
Native toggle button
```tsx
const pressed = state(false);
<Toggle pressed={pressed()} onPress={() => pressed.set(!pressed())}>
Mute
</Toggle>
```Polymorphic rendering (asChild)
```tsx
<Toggle asChild pressed={muted} onPress={toggleMute}>
<span>ðŸâ€â€¡</span>
</Toggle>
```ToggleAsChildPropstype
ToggleAsChildProps: ToggleOwnProps & {
asChild: true;
children: JSXElement;
ref?: Ref<Element>;
type?: never;
}Props when rendering via asChild
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((e: PressEvent) => void) | undefined;
pressed- pressed?: boolean | undefined;
ref- ref?: Ref<Element>;
type- type?: undefined;
ToggleButtonPropstype
ToggleButtonProps: Omit<JSX.IntrinsicElements['button'], 'children' | 'onClick' | 'disabled' | 'type' | 'ref'> & ToggleOwnProps & {
asChild?: false;
ref?: Ref<HTMLButtonElement>;
type?: 'button' | 'submit' | 'reset';
}Props when rendering as a native <button> element
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((e: PressEvent) => void) | undefined;
pressed- pressed?: boolean | undefined;
ref- ref?: Ref<HTMLButtonElement>;
type- type?: "button" | "submit" | "reset" | undefined;
ToggleGrouptype
ToggleGroup: (props: ToggleGroupProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementRenders a part of toggle-group.
ToggleGroupItemtype
ToggleGroupItem: { (props: ToggleGroupItemProps): JSX.Element; (props: ToggleGroupItemAsChildProps): JSX.Element; }Renders a part of toggle-group.
Supports polymorphic rendering via asChild.
ToggleGroupItemAsChildPropstype
ToggleGroupItemAsChildProps: ButtonLikeAsChildProps & ToggleGroupItemOwnPropsProps for the asChild (polymorphic) rendering of Toggle Group Item.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
type- type?: undefined;
value- value: string;
ToggleGroupItemOwnPropstype
ToggleGroupItemOwnProps: {
value: string;
disabled?: boolean;
children?: unknown;
}Own props for Toggle Group Item, before merging with native element attributes.
children- children?: unknown;
disabled- disabled?: boolean | undefined;
value- value: string;
ToggleGroupItemPropstype
ToggleGroupItemProps: ButtonLikeProps<'button', HTMLButtonElement> & ToggleGroupItemOwnPropsProps for Toggle Group Item.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
type- type?: "button" | "submit" | "reset" | undefined;
ToggleGroupMultiplePropstype
ToggleGroupMultipleProps: BoxProps<'div', HTMLDivElement> & ToggleGroupSharedOwnProps & {
type: 'multiple';
value?: string[];
defaultValue?: string[];
onValueChange?: (value: string[]) => void;
}Props for Toggle Group Multiple.
asChild- asChild?: false | undefined;
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
defaultValue- defaultValue?: string[] | undefined;
disabled- disabled?: boolean | undefined;
id- id?: string | undefined;
loop- loop?: boolean | undefined;
onValueChange- onValueChange?: ((value: string[]) => void) | undefined;
orientation- orientation?: ToggleGroupOrientation | undefined;
ref- ref?: Ref<HTMLDivElement>;
type- type: "multiple";
value- value?: string[] | undefined;
ToggleGroupOrientationtype
ToggleGroupOrientation: 'horizontal' | 'vertical'Toggle Group Orientation.
ToggleGroupPropstype
ToggleGroupProps: ToggleGroupSingleProps | ToggleGroupMultiplePropsProps for Toggle Group.
asChild- asChild?: false | undefined;
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
defaultValue- defaultValue?: string | string[] | undefined;
disabled- disabled?: boolean | undefined;
id- id?: string | undefined;
loop- loop?: boolean | undefined;
onValueChange- onValueChange?: ((value: string[]) => void) | ((value: string) => void) | undefined;
orientation- orientation?: ToggleGroupOrientation | undefined;
ref- ref?: Ref<HTMLDivElement>;
type- type?: "single" | "multiple" | undefined;
value- value?: string | string[] | undefined;
ToggleGroupSinglePropstype
ToggleGroupSingleProps: BoxProps<'div', HTMLDivElement> & ToggleGroupSharedOwnProps & {
type?: 'single';
value?: string;
defaultValue?: string;
onValueChange?: (value: string) => void;
}Props for Toggle Group Single.
asChild- asChild?: false | undefined;
children- Supports literal, nested, array-mapped, and `For`-rendered descendants.
defaultValue- defaultValue?: string | undefined;
disabled- disabled?: boolean | undefined;
id- id?: string | undefined;
loop- loop?: boolean | undefined;
onValueChange- onValueChange?: ((value: string) => void) | undefined;
orientation- orientation?: ToggleGroupOrientation | undefined;
ref- ref?: Ref<HTMLDivElement>;
type- type?: "single" | undefined;
value- value?: string | undefined;
ToggleOwnPropstype
ToggleOwnProps: {
children?: unknown;
onPress?: (e: PressEvent) => void;
pressed?: boolean;
disabled?: boolean;
}Props shared by all Toggle variants
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((e: PressEvent) => void) | undefined;
pressed- pressed?: boolean | undefined;
TogglePropstype
ToggleProps: ToggleButtonProps | ToggleAsChildPropsDiscriminated union of Toggle prop types
asChild- asChild?: boolean | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((e: PressEvent) => void) | undefined;
pressed- pressed?: boolean | undefined;
ref- ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLButtonElement | null) => void) | { current: HTMLButtonElement | null; } | null | undefined;
type- type?: "button" | "submit" | "reset" | undefined;
Tooltiptype
Tooltip: (props: TooltipProps) => import("@askrjs/askr/jsx-runtime").JSX.ElementRenders a part of tooltip.
TooltipContenttype
TooltipContent: { (props: TooltipContentProps): JSX.Element | null; (props: TooltipContentAsChildProps): JSX.Element | null; }Renders the tooltip-content part of tooltip with role="tooltip".
Supports polymorphic rendering via asChild.
TooltipContentAsChildPropstype
TooltipContentAsChildProps: BoxAsChildProps & TooltipContentOwnPropsProps for the asChild (polymorphic) rendering of Tooltip Content.
align- align?: OverlayAlign | undefined;
asChild- asChild: true;
children- children: JSXElement;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<Element>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
TooltipContentOwnPropstype
TooltipContentOwnProps: {
forceMount?: boolean;
side?: OverlaySide;
align?: OverlayAlign;
sideOffset?: number;
}Own props for Tooltip Content, before merging with native element attributes.
align- align?: OverlayAlign | undefined;
forceMount- forceMount?: boolean | undefined;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
TooltipContentPropstype
TooltipContentProps: BoxProps<'div', HTMLDivElement> & TooltipContentOwnPropsProps for Tooltip Content.
align- align?: OverlayAlign | undefined;
asChild- asChild?: false | undefined;
children- children?: unknown;
forceMount- forceMount?: boolean | undefined;
ref- ref?: Ref<HTMLDivElement>;
side- side?: OverlaySide | undefined;
sideOffset- sideOffset?: number | undefined;
TooltipOwnPropstype
TooltipOwnProps: {
children?: unknown;
id?: string;
open?: boolean;
defaultOpen?: boolean;
onOpenChange?: (open: boolean) => void;
}Own props for Tooltip, before merging with native element attributes.
children- children?: unknown;
defaultOpen- defaultOpen?: boolean | undefined;
id- id?: string | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
open- open?: boolean | undefined;
TooltipPortaltype
TooltipPortal: (props: TooltipPortalProps) => JSX.Element | nullRenders a part of tooltip.
TooltipPortalPropstype
TooltipPortalProps: {
children?: unknown;
}Props for Tooltip Portal.
children- children?: unknown;
TooltipPropstype
TooltipProps: TooltipOwnPropsProps for Tooltip.
children- children?: unknown;
defaultOpen- defaultOpen?: boolean | undefined;
id- id?: string | undefined;
onOpenChange- onOpenChange?: ((open: boolean) => void) | undefined;
open- open?: boolean | undefined;
TooltipTriggertype
TooltipTrigger: { (props: TooltipTriggerProps): JSX.Element; (props: TooltipTriggerAsChildProps): JSX.Element; }Renders the tooltip-trigger part of tooltip.
Supports polymorphic rendering via asChild.
TooltipTriggerAsChildPropstype
TooltipTriggerAsChildProps: ButtonLikeAsChildPropsProps for the asChild (polymorphic) rendering of Tooltip Trigger.
asChild- asChild: true;
children- children: JSXElement;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<Element>;
type- type?: undefined;
TooltipTriggerPropstype
TooltipTriggerProps: ButtonLikeProps<'button', HTMLButtonElement>Props for Tooltip Trigger.
asChild- asChild?: false | undefined;
children- children?: unknown;
disabled- disabled?: boolean | undefined;
onPress- onPress?: ((event: PressEvent) => void) | undefined;
ref- ref?: Ref<HTMLButtonElement>;
type- type?: "button" | "submit" | "reset" | undefined;
VirtualListtype
VirtualList: { <Item>(props: VirtualListProps<Item>): JSX.Element; <Item>(props: VirtualListAsChildProps<Item>): JSX.Element; }Renders a part of virtual-list.
Supports polymorphic rendering via asChild.
VirtualListApitype
VirtualListApi: {
scrollToIndex: (index: number, alignment?: VirtualScrollAlignment) => void;
scrollToTop: () => void;
scrollToBottom: () => void;
getState: () => VirtualListState;
getVisibleRange: () => VirtualRange;
getItemCount: () => number;
getScrollTop: () => number;
isAtTop: () => boolean;
isAtBottom: () => boolean;
isFollowingBottom: () => boolean;
getPendingUnseenCount: () => number;
setFollowBottom: (followBottom: boolean) => void;
}Virtual List Api.
VirtualListAsChildPropstype
VirtualListAsChildProps: Omit<VirtualListRootProps, 'children'> & {
items: readonly Item[];
rowHeight: number;
/** Optional keyed row sizing. When omitted, VirtualList retains its fixed-height arithmetic path. */
getRowHeight?: (item: Item, index: number) => number;
overscan?: VirtualOverscan;
getKey: (item: Item, index: number) => string | number;
rowComponent: VirtualListRowComponent<Item>;
followBottom?: boolean | {
threshold?: number;
};
onScroll?: (event: Event) => void;
viewport?: VirtualListViewport;
apiRef?: Ref<VirtualListApi<Item> | null>;
ref?: Ref<HTMLElement>;
asChild: true;
children: JSXElement;
}Props for the asChild (polymorphic) rendering of Virtual List.
apiRef- apiRef?: Ref<VirtualListApi<Item> | null>;
asChild- asChild: true;
children- children: JSXElement;
followBottom- followBottom?: boolean | { threshold?: number; } | undefined;
getKey- getKey: (item: Item, index: number) => string | number;
getRowHeight- Optional keyed row sizing. When omitted, VirtualList retains its fixed-height arithmetic path.
items- items: readonly Item[];
onScroll- onScroll?: ((event: Event) => void) | undefined;
overscan- overscan?: VirtualOverscan | undefined;
ref- ref?: Ref<HTMLElement>;
rowComponent- rowComponent: VirtualListRowComponent<Item>;
rowHeight- rowHeight: number;
viewport- viewport?: "lg" | undefined;
VirtualListPropstype
VirtualListProps: VirtualListRootProps & {
items: readonly Item[];
rowHeight: number;
/** Optional keyed row sizing. When omitted, VirtualList retains its fixed-height arithmetic path. */
getRowHeight?: (item: Item, index: number) => number;
overscan?: VirtualOverscan;
getKey: (item: Item, index: number) => string | number;
rowComponent: VirtualListRowComponent<Item>;
followBottom?: boolean | {
threshold?: number;
};
onScroll?: (event: Event) => void;
viewport?: VirtualListViewport;
apiRef?: Ref<VirtualListApi<Item> | null>;
ref?: Ref<HTMLElement>;
asChild?: false;
}Props for Virtual List.
apiRef- apiRef?: Ref<VirtualListApi<Item> | null>;
asChild- asChild?: false | undefined;
followBottom- followBottom?: boolean | { threshold?: number; } | undefined;
getKey- getKey: (item: Item, index: number) => string | number;
getRowHeight- Optional keyed row sizing. When omitted, VirtualList retains its fixed-height arithmetic path.
items- items: readonly Item[];
onScroll- onScroll?: ((event: Event) => void) | undefined;
overscan- overscan?: VirtualOverscan | undefined;
ref- ref?: Ref<HTMLElement>;
rowComponent- rowComponent: VirtualListRowComponent<Item>;
rowHeight- rowHeight: number;
viewport- viewport?: "lg" | undefined;
VirtualListRowComponenttype
VirtualListRowComponent: (props: VirtualListRowComponentProps<Item>) => VirtualListRowElement | nullVirtual List Row Component.
VirtualListRowComponentPropstype
VirtualListRowComponentProps: {
item: Item;
index: number;
rowKey: string;
isVisible: boolean;
}Props for Virtual List Row Component.
index- index: number;
isVisible- isVisible: boolean;
item- item: Item;
rowKey- rowKey: string;
VirtualListRowElementtype
VirtualListRowElement: JSXElement | JSX.ElementVirtual List Row Element.
VirtualListStatetype
VirtualListState: {
count: number;
scrollTop: number;
viewportHeight: number;
totalHeight: number;
visibleRange: VirtualRange;
isAtTop: boolean;
isAtBottom: boolean;
followBottom: boolean;
pendingUnseenCount: number;
}Virtual List State.
VirtualListViewporttype
VirtualListViewport: 'lg'Virtual List Viewport.
VirtualTabletype
VirtualTable: { <Row>(props: VirtualTableProps<Row>): JSX.Element; <Row>(props: VirtualTableAsChildProps<Row>): JSX.Element; }Renders a part of virtual-table.
Supports polymorphic rendering via asChild.
VirtualTableApitype
VirtualTableApi: {
scrollToIndex: (index: number, alignment?: VirtualScrollAlignment) => void;
scrollToTop: () => void;
scrollToBottom: () => void;
getState: () => VirtualTableState;
getVisibleRange: () => VirtualRange;
getRowCount: () => number;
getScrollTop: () => number;
isAtTop: () => boolean;
isAtBottom: () => boolean;
getSelectedRowKey: () => string | null;
getSelectedRowIndex: () => number;
selectRowByKey: (rowKey: string) => void;
selectRowByIndex: (index: number) => void;
clearSelection: () => void;
}Virtual Table Api.
VirtualTableAsChildPropstype
VirtualTableAsChildProps: Omit<VirtualTableRootProps, 'children'> & {
rows: readonly Row[];
rowHeight: number;
headerHeight: number;
overscan?: VirtualOverscan;
getKey: (row: Row, index: number) => string | number;
columns: readonly VirtualTableColumn<Row>[];
selectedRowKey?: string | null;
defaultSelectedRowKey?: string | null;
onSelectedRowKeyChange?: (next: string | null) => void;
onRowClick?: (row: Row, rowIndex: number, rowKey: string, event: MouseEvent) => void;
onScroll?: (event: Event) => void;
viewport?: VirtualTableViewport;
tableWidth?: VirtualTableWidth;
apiRef?: Ref<VirtualTableApi<Row> | null>;
ref?: Ref<HTMLElement>;
asChild: true;
children: JSXElement;
}Props for the asChild (polymorphic) rendering of Virtual Table.
apiRef- apiRef?: Ref<VirtualTableApi<Row> | null>;
asChild- asChild: true;
children- children: JSXElement;
columns- columns: readonly VirtualTableColumn<Row>[];
defaultSelectedRowKey- defaultSelectedRowKey?: string | null | undefined;
getKey- getKey: (row: Row, index: number) => string | number;
headerHeight- headerHeight: number;
onRowClick- onRowClick?: ((row: Row, rowIndex: number, rowKey: string, event: MouseEvent) => void) | undefined;
onScroll- onScroll?: ((event: Event) => void) | undefined;
onSelectedRowKeyChange- onSelectedRowKeyChange?: ((next: string | null) => void) | undefined;
overscan- overscan?: VirtualOverscan | undefined;
ref- ref?: Ref<HTMLElement>;
rowHeight- rowHeight: number;
rows- rows: readonly Row[];
selectedRowKey- selectedRowKey?: string | null | undefined;
tableWidth- tableWidth?: "compact" | undefined;
viewport- viewport?: "lg" | undefined;
VirtualTableCellComponenttype
VirtualTableCellComponent: (props: VirtualTableCellComponentProps<Row>) => VirtualTableCellElement | nullVirtual Table Cell Component.
VirtualTableCellComponentPropstype
VirtualTableCellComponentProps: {
row: Row;
rowIndex: number;
rowKey: string;
column: VirtualTableColumn<Row>;
selected: boolean;
}Props for Virtual Table Cell Component.
column- column: VirtualTableColumn<Row>;
row- row: Row;
rowIndex- rowIndex: number;
rowKey- rowKey: string;
selected- selected: boolean;
VirtualTableCellElementtype
VirtualTableCellElement: JSXElement | JSX.ElementVirtual Table Cell Element.
VirtualTableColumntype
VirtualTableColumn: {
id: string;
header: JSXElement | string;
width?: number | string;
cellComponent: VirtualTableCellComponent<Row>;
}Virtual Table Column.
VirtualTablePropstype
VirtualTableProps: VirtualTableRootProps & {
rows: readonly Row[];
rowHeight: number;
headerHeight: number;
overscan?: VirtualOverscan;
getKey: (row: Row, index: number) => string | number;
columns: readonly VirtualTableColumn<Row>[];
selectedRowKey?: string | null;
defaultSelectedRowKey?: string | null;
onSelectedRowKeyChange?: (next: string | null) => void;
onRowClick?: (row: Row, rowIndex: number, rowKey: string, event: MouseEvent) => void;
onScroll?: (event: Event) => void;
viewport?: VirtualTableViewport;
tableWidth?: VirtualTableWidth;
apiRef?: Ref<VirtualTableApi<Row> | null>;
ref?: Ref<HTMLElement>;
asChild?: false;
}Props for Virtual Table.
apiRef- apiRef?: Ref<VirtualTableApi<Row> | null>;
asChild- asChild?: false | undefined;
columns- columns: readonly VirtualTableColumn<Row>[];
defaultSelectedRowKey- defaultSelectedRowKey?: string | null | undefined;
getKey- getKey: (row: Row, index: number) => string | number;
headerHeight- headerHeight: number;
onRowClick- onRowClick?: ((row: Row, rowIndex: number, rowKey: string, event: MouseEvent) => void) | undefined;
onScroll- onScroll?: ((event: Event) => void) | undefined;
onSelectedRowKeyChange- onSelectedRowKeyChange?: ((next: string | null) => void) | undefined;
overscan- overscan?: VirtualOverscan | undefined;
ref- ref?: Ref<HTMLElement>;
rowHeight- rowHeight: number;
rows- rows: readonly Row[];
selectedRowKey- selectedRowKey?: string | null | undefined;
tableWidth- tableWidth?: "compact" | undefined;
viewport- viewport?: "lg" | undefined;
VirtualTableStatetype
VirtualTableState: {
count: number;
rowHeight: number;
headerHeight: number;
scrollTop: number;
viewportHeight: number;
totalHeight: number;
visibleRange: VirtualRange;
isAtTop: boolean;
isAtBottom: boolean;
selectedRowKey: string | null;
selectedRowIndex: number;
}Virtual Table State.
VirtualTableViewporttype
VirtualTableViewport: 'lg'Virtual Table Viewport.
VirtualTableWidthtype
VirtualTableWidth: 'compact'Virtual Table Width.