@xsolla/xui-primitives-core
v0.99.0
Published
Core type definitions for XUI primitives
Readme
@xsolla/xui-primitives-core
Shared TypeScript types for cross-platform primitive components in the XUI toolkit.
Installation
yarn add @xsolla/xui-primitives-coreUsage
import type { BoxProps, TextProps, InputPrimitiveProps } from '@xsolla/xui-primitives-core';
interface MyBoxProps extends BoxProps {
highlight?: boolean;
}Exports
BoxProps— Props interface for layout container primitives (flexbox, spacing, borders, events, ARIA)TextProps— Props interface for text primitives (colour, fontSize, fontWeight, alignment)SpinnerProps— Props interface for loading spinner primitivesIconProps— Props interface for icon primitives (name, colour, size)DividerProps— Props interface for divider/separator primitivesInputPrimitiveProps— Props interface for text input primitives (value, onChange, inputMode, autoComplete, ARIA)TextAreaPrimitiveProps— Props interface for textarea primitives; extendsInputPrimitivePropswithrowsandautoSize
