MCPcopy Create free account

hub / github.com/DioxusLabs/dioxus-components / functions

Functions1,115 in github.com/DioxusLabs/dioxus-components

↓ 96 callersMethoditer
Iterate over the [`Weekday`]s in the collection starting from a given day Wraps around from Sunday to Monday if necessary
primitives/src/calendar.rs:41
↓ 90 callersFunctionmerge_attributes
Merge multiple attribute vectors. Rules: - Later lists win for the same (name, namespace) pair. - `class` is concatenated with a single space separat
primitives/src/lib.rs:348
↓ 63 callersMethodfirst
Get the first day in the collection, starting from Monday Returns `None` if the collection is empty
primitives/src/calendar.rs:25
↓ 36 callersFunctionuse_unique_id
Generate a runtime-unique id.
primitives/src/lib.rs:63
↓ 27 callersFunctionsender
(name: &'static str, addr: &'static str, initials: &'static str)
preview/src/dashboard/common/messages.rs:12
↓ 25 callersFunctionuse_id_or
Elements can only have one id so if the user provides their own, we must use it as the aria id.
primitives/src/lib.rs:83
↓ 23 callersMethodset_focus
(&mut self, index: Option<usize>)
primitives/src/collection.rs:117
↓ 21 callersFunctionlist
(page: Page)
playwright/combobox.spec.ts:13
↓ 21 callersFunctionuse_controlled
Allows some state to be either controlled or uncontrolled.
primitives/src/lib.rs:119
↓ 20 callersMethodis_empty
(&self)
primitives/src/selectable.rs:83
↓ 17 callersFunctiontag
(page: Page, name: string)
playwright/tag_group.spec.ts:20
↓ 16 callersFunctioncollection_item
Begin registering one collection item. Chain only the optional inputs the component actually has — `key`, `disabled`, `hidden`, `selected` — then pass
primitives/src/collection.rs:469
↓ 16 callersFunctionuse_item
Register an item builder and return its handle: a roving `tabindex`, `focused()` state, and an `onmounted()` focus handler. This is the hook — it call
primitives/src/collection.rs:527
↓ 15 callersMethoddisabled
Whether the item is currently disabled (skipped by roving focus).
primitives/src/collection.rs:497
↓ 15 callersFunctiongetItems
Helper to get list items from a dnd-list container.
playwright/drag_and_drop_list.spec.ts:26
↓ 15 callersMethodonmounted
A mounted handler that lets the collection drive DOM focus for this item. Attach it to the focusable element.
primitives/src/collection.rs:458
↓ 14 callersMethodcontains
Returns `true` if the collection contains the given day
primitives/src/calendar.rs:60
↓ 14 callersFunctionloadMainList
Navigate to the DnD page and return the first (main) variant list.
playwright/drag_and_drop_list.spec.ts:10
↓ 14 callersMethodoffset_view_date
(&self)
primitives/src/calendar.rs:982
↓ 14 callersFunctionuse_collection_provider
(roving_loop: ReadSignal<bool>)
primitives/src/collection.rs:427
↓ 13 callersMethodkey
The item key, used for focus identity and `focused_key()` lookups.
primitives/src/collection.rs:503
↓ 13 callersMethodremove
Remove the item at the given index from the list.
primitives/src/drag_and_drop_list.rs:175
↓ 12 callersMethodclamp
(&self, date: Date)
primitives/src/calendar.rs:221
↓ 12 callersFunctioncontent
(page: Page)
playwright/combobox.spec.ts:10
↓ 12 callersFunctionmake_measurements
(state: &Store<VirtualizerState>)
primitives/src/virtual/virtualizer.rs:343
↓ 12 callersMethodstart
Get the start of the range
primitives/src/calendar.rs:226
↓ 11 callersMethodavailable
(&self)
primitives/src/collection.rs:19
↓ 11 callersMethodclear_focus
(&mut self)
primitives/src/collection.rs:151
↓ 11 callersMethodend
Get the end of the range
primitives/src/calendar.rs:231
↓ 11 callersFunctionuse_animated_open
( id: impl Readable<Target = String> + Copy + 'static, open: impl Readable<Target = bool> + Copy + 'st
primitives/src/lib.rs:244
↓ 9 callersMethodcolor
Read the current HSV color.
primitives/src/color_picker.rs:62
↓ 9 callersMethodfocused_index
(&self)
primitives/src/collection.rs:155
↓ 9 callersFunctioninput
(page: Page)
playwright/combobox.spec.ts:7
↓ 9 callersFunctionitemText
(locator: import("@playwright/test").Locator)
playwright/drag_and_drop_list.spec.ts:34
↓ 9 callersMethodlearn_from_event
Learn from a keyboard event mapping physical key to logical character
primitives/src/select/text_search.rs:136
↓ 9 callersMethodnext
(&mut self)
primitives/src/calendar.rs:85
↓ 9 callersFunctionopenPicker
(page: Page)
playwright/color-picker.spec.ts:6
↓ 8 callersMethodas_ref
Downcast this value to its concrete type.
primitives/src/selection.rs:36
↓ 8 callersFunctionrecency_bias
The recency bias of the levenshtein distance function
primitives/src/select/text_search.rs:53
↓ 8 callersFunctionset_scroll_offset
Handle a scroll event. Writes reactive fields (`scroll_offset`, `is_scrolling`) which trigger component re-renders. Returns an optional correction t
primitives/src/virtual/virtualizer.rs:88
↓ 8 callersFunctionsingleSelectTrigger
(page: Page)
playwright/select.spec.ts:3
↓ 8 callersMethodupdate_message
(&mut self, uid: String, update: impl FnOnce(&mut MessageState))
preview/src/dashboard/views/email_client/state.rs:250
↓ 7 callersMethodany_focused
(&self)
primitives/src/collection.rs:187
↓ 7 callersFunctionbest_match
Find the best matching option based on typeahead input
primitives/src/select/text_search.rs:8
↓ 7 callersMethodfocus_next
(&mut self)
primitives/src/collection.rs:265
↓ 7 callersMethodis_available
(&self, index: usize)
primitives/src/collection.rs:195
↓ 7 callersMethodis_dragging
(&self)
primitives/src/drag_and_drop_list.rs:125
↓ 7 callersFunctionlevenshtein_distance
We use a weighted Levenshtein distance to account for the recency of characters More recent characters have a higher weight, while older characters ha
primitives/src/select/text_search.rs:62
↓ 7 callersMethodsubstitution_cost
Calculate hybrid substitution cost using multiple strategies
primitives/src/select/text_search.rs:143
↓ 6 callersMethodclose_read_pane
(&mut self)
preview/src/dashboard/views/email_client/state.rs:165
↓ 6 callersFunctioncreate_test_state
()
primitives/src/virtual/virtualizer.rs:330
↓ 6 callersMethodfocus_prev
(&mut self)
primitives/src/collection.rs:274
↓ 6 callersMethodloops
Whether arrow navigation wraps around the ends of the collection.
primitives/src/collection.rs:71
↓ 6 callersMethodmodifiers
(&self)
primitives/src/move_interaction.rs:170
↓ 6 callersFunctionnormalized_distance
Calculate normalized distance between typeahead and value characters
primitives/src/select/text_search.rs:34
↓ 6 callersMethodpredicate
(&self)
primitives/src/combobox/context.rs:33
↓ 6 callersFunctionresize_item
Resize an item and return an optional scroll adjustment. Called from resize event handlers. All access uses `.peek()` so this never triggers a compo
primitives/src/virtual/virtualizer.rs:139
↓ 6 callersFunctionsliderTrack
(slider: Locator)
playwright/slider.spec.ts:21
↓ 6 callersFunctionwith_runtime
Run a closure inside a Dioxus runtime context so that Store/CopyValue APIs are available. The closure runs inside a component render.
primitives/src/virtual/virtualizer.rs:299
↓ 5 callersFunctiondispatch
(node: EventTarget, type: string, init: DragEventInit = {})
playwright/drag_and_drop_list.spec.ts:57
↓ 5 callersMethoddistance_cost
Calculate substitution cost between two characters based on keyboard distance
primitives/src/select/text_search.rs:288
↓ 5 callersMethodfirst_available_index
(&self)
primitives/src/collection.rs:202
↓ 5 callersMethodfocus_first
(&mut self)
primitives/src/collection.rs:257
↓ 5 callersMethodfocus_last
(&mut self)
primitives/src/collection.rs:261
↓ 5 callersMethodfocused
Whether this item is the currently focused one.
primitives/src/collection.rs:452
↓ 5 callersMethodkey
(&self)
primitives/src/virtual/types.rs:25
↓ 5 callersMethodsame_identity
(&self, other: &Self)
primitives/src/collection.rs:23
↓ 5 callersFunctionsliderGroup
(page: Page, name: string | RegExp)
playwright/slider.spec.ts:14
↓ 5 callersFunctionuse_effect_cleanup
Run some cleanup code when the component is unmounted if the effect was run.
primitives/src/lib.rs:136
↓ 5 callersFunctionuse_effect_with_cleanup
Run some cleanup code when the component is unmounted if the effect was run.
primitives/src/lib.rs:141
↓ 4 callersMethodannounce
(&mut self, msg: String)
primitives/src/drag_and_drop_list.rs:193
↓ 4 callersMethodas_str
(self)
preview/src/dashboard/common/mod.rs:50
↓ 4 callersMethodavailable_range
Get the available range of given date
primitives/src/calendar.rs:288
↓ 4 callersMethodchar_position
Get the position of a character on the keyboard layout
primitives/src/select/text_search.rs:303
↓ 4 callersFunctionclickSliderTrack
(page: Page, track: Locator, frac: number)
playwright/slider.spec.ts:9
↓ 4 callersMethodclose_if_selected
(&mut self, uid: &str)
preview/src/dashboard/views/email_client/state.rs:257
↓ 4 callersFunctioncompute_measurements
Compute item measurements from current state. This is a pure function suitable for use inside a `use_memo`. Adaptive estimation (average of measured
primitives/src/virtual/virtualizer.rs:52
↓ 4 callersMethoddrag_from
(&self)
primitives/src/drag_and_drop_list.rs:103
↓ 4 callersMethoddrop_to
(&self)
primitives/src/drag_and_drop_list.rs:110
↓ 4 callersMethodfocusChild
(child: HTMLElement)
primitives/src/ts/focus-trap.ts:60
↓ 4 callersMethodfocusChild
(child)
primitives/src/js/focus-trap.js:1
↓ 4 callersFunctiongotoSidebarBlock
(page: Page)
playwright/sidebar.spec.ts:6
↓ 4 callersMethodis_empty
(&self)
primitives/src/tag_group.rs:116
↓ 4 callersMethodis_empty
Returns `true` if the collection is empty
primitives/src/calendar.rs:46
↓ 4 callersMethodis_focused
Check if a date is focused
primitives/src/calendar.rs:379
↓ 4 callersFunctionlookup_message
(source_index: usize)
preview/src/dashboard/common/messages.rs:224
↓ 4 callersMethodphonetic_similarity_cost
Check phonetic similarity using small lookup groups
primitives/src/select/text_search.rs:182
↓ 4 callersMethodrecent_focus
(&self)
primitives/src/collection.rs:159
↓ 4 callersFunctionreplace_month
(date: Date, month: Month)
primitives/src/calendar.rs:155
↓ 4 callersMethodselected
Whether this item is the selected one. When nothing is focused yet, the selected item becomes the roving tab stop — mirrors React Aria seeding `focuse
primitives/src/collection.rs:517
↓ 4 callersMethodset_focus
(&mut self, index: Option<usize>)
primitives/src/drag_and_drop_list.rs:205
↓ 4 callersMethodshow
Send a toast to the associated [`ToastProvider`] with the given title, type, and options.
primitives/src/toast.rs:655
↓ 4 callersFunctionsync_option_state
(options: &mut Vec<OptionState>, option_state: OptionState)
primitives/src/selection.rs:104
↓ 4 callersFunctionuse_sidebar
()
preview/src/components/sidebar/component.rs:130
↓ 4 callersFunctionuse_toast
# use_toast The `use_toast` hook provides access to the [`Toast`] api from the nearest [`ToastProvider`] which lets you dispatch toasts from anywhere
primitives/src/toast.rs:725
↓ 3 callersFunctionarea_percent
(value: ClientPoint)
primitives/src/color_picker.rs:44
↓ 3 callersMethodas_percent
(&self, value: f64)
primitives/src/slider.rs:805
↓ 3 callersMethodas_str
(&self)
primitives/src/lib.rs:296
↓ 3 callersMethodavailable_indices_matching
(&self, predicate: impl Fn(usize) -> bool)
primitives/src/collection.rs:334
↓ 3 callersFunctioncalculate_total_size
Calculate total size from measurements.
primitives/src/virtual/virtualizer.rs:282
next →1–100 of 1,115, ranked by callers