Skip to main content

Crate hyperchad_transformer_models

Crate hyperchad_transformer_models 

Source
Expand description

Type definitions for HyperChad UI transformer models.

This crate provides the core data models used by the HyperChad transformer framework, including layout primitives, styling enums, routing definitions, and DOM manipulation types.

§Core Types

§Features

  • serde - Enables serialization/deserialization for all public types
  • arb - Provides Arbitrary implementations for property-based testing
  • layout - Enables the LayoutPosition type for grid-based layouts

Modules§

arb
Property-based testing support via proptest::arbitrary::Arbitrary implementations.

Structs§

ParseSelectorError
Error type for selector parsing failures.

Enums§

AlignItems
Item alignment along the cross axis in flexbox-style layouts.
Cursor
Mouse cursor style.
ElementTarget
Target specification for DOM element selection.
FontWeight
Font weight (thickness) values.
ImageFit
How an image should fit within its container.
ImageLoading
Image loading strategy.
JustifyContent
Content justification along the main axis in flexbox-style layouts.
LayoutDirection
Layout direction for flexbox-style layouts.
LayoutOverflow
Overflow behavior for layouts when content exceeds available space.
LayoutPosition
Position information for elements in wrapped layouts.
LinkTarget
HTML link target attribute.
OverflowWrap
Word breaking and wrapping behavior.
Position
CSS positioning mode for elements.
Route
HTTP route definition with target and swap strategy.
Selector
CSS-style selector for targeting elements.
SwapStrategy
Strategy for how to swap or insert content in the DOM.
Target
A target reference that can be either a literal string or a reference to a value.
TextAlign
Text alignment within a container.
TextDecorationLine
Text decoration line style.
TextDecorationStyle
Text decoration style.
TextOverflow
Text overflow behavior.
UserSelect
Text selection behavior.
Visibility
Element visibility state.
WhiteSpace
White space handling in text.