@tempots/ui
ui package
Functions
Function |
Description |
---|---|
Creates an anchor element with the specified href and children. When the anchor element is clicked, the location is updated to the specified href. | |
Compares two location objects and returns true if they are equal, false otherwise. | |
Renders the view based on the result of an asynchronous operation. | |
Creates a renderable function that focuses on the element after a specified delay. | |
Creates a renderable function that automatically selects the content of an input element after a specified delay. | |
Creates a renderable function that monitors the size of an element and provides it as a signal. | |
Handles anchor click events, optionally checking for external URLs and file extensions. | |
Creates an HTML title element with the specified title. | |
Creates a renderable component that tracks whether the element is in the viewport. | |
Converts a URL string into a LocationData object. | |
Matches a path against a route. | |
PopOver({ content, open, placement, offset: { mainAxis, crossAxis }, }) |
Renders a PopOver component. |
Provides a child component with an appearance context, which can be used to determine the current appearance (light or dark) based on the user's system preferences. The appearance context is updated whenever the user's system preferences change, and the component is cleaned up when it is no longer needed. | |
Provides the location context to the child component. | |
Renders a view based on the result of a computation. | |
Creates a router that maps routes to corresponding renderable components. | |
Selects the text inside an input element when it receives focus. | |
Sets the location from the given URL and updates the specified property. | |
Returns the full URL based on the provided location data. | |
Makes the AppearanceType available to the child component by consuming the signal provided by the parent. The result of the function is returned as the final output. | |
A hook that provides the current location data to the given function. | |
Executes the provided | |
Creates a renderable function that monitors the window size and invokes the provided function with the current size. |
Variables
Variable |
Description |
---|---|
A provider mark for a signal representing the current appearance type. | |
Hides the element when it is empty and restores its initial state when necessary. | |
Marker for the LocationProvider. |
Type Aliases
Type Alias |
Description |
---|---|
Options for configuring an anchor element. | |
Defines the possible appearance types for the application. | |
Represents the options for rendering an asynchronous result view. | |
Extracts the parameters from a string literal representing a route path. | |
Extracts the parameter names from a tuple type. | |
Options for handling anchor click events. | |
Represents either a string value (or Signal of string) for the href, or a full AnchorOptions object. This type is used as the first parameter of the Anchor function, allowing for flexible configuration of anchor elements. | |
Represents the mode for determining if an element is in the viewport.
| |
Represents the data for a location. | |
Represents a type that transforms a tuple of strings into an object with string keys. If the input type is a tuple, each element of the tuple will become a key in the resulting object, with the corresponding value being a string. If the input type is not a tuple, the resulting type will be | |
The result of a route match. | |
The result of a route match with the matched route. | |
Represents the placement options for a pop-over. | |
Represents the properties for a PopOver component. | |
Represents the signal for a result. | |
Represents a route in the application. | |
Represents a catch-all route. | |
Represents information about a route. | |
Represents a literal route. | |
Represents a route parameter. | |
Represents a segment of a route. |