Style props are set directly on Uzumaki elements. Most props are shared across elements.
Numbers are logical pixels. Strings can carry a unit or a keyword.
< view p = { 16 } fontSize = " 1.25rem " w = " 100% " h = " full " m = " auto " />
Form Example Where it works Number p={16}, fontSize={14}Any length prop. Unit is pixels. "<n>"w="200"Same as a number. "<n>px"w="200px"Same as a number. "<n>rem"fontSize="1.25rem"Scaled by window.remBase. "<n>%"w="50%"Sizing and inset props. "full"h="full"Sizing and inset props. Same as 100%. "auto"m="auto", w="auto"Sizing, inset, and margin.
gap accepts the same forms as sizing except auto.
Hex, named CSS colors, and rgb() / rgba() are all accepted.
< view bg = " slategray " border = { 1 } borderColor = " rgba(255, 255, 255, 0.1) " />
Form Example Hex "#f4f4f5", "#fff", "#0008", "#11223344"Named "red", "slategray", "rebeccapurple", "transparent", …rgb()"rgb(20, 30, 40)"rgba()"rgba(20, 30, 40, 0.5)" or "rgba(20, 30, 40, 128)"
All standard CSS named colors are supported. Alpha in rgba() accepts either a 0–1 float or a 0–255 integer.
Boolean props accept true/false. When passed as a string, these values count as false: "", "0", "false", "hidden", "none", "no", "off". Everything else is true.
Prop Description w, hWidth and height. minW, minHMinimum width and height. p, px, py, pt, pr, pb, plPadding. m, mx, my, mt, mr, mb, mlMargin.
Prop Values displayflex, block, nonepositionrelative, absolutetop, right, bottom, leftNumber or string offset
Prop Values flexDirrow, col / column, row-reverse, col-reverseflexWrapnowrap / no-wrap, wrap, wrap-reverseflextrue, number, or a flexDir string (sets display:flex and direction)flexGrowNumber flexShrinkNumber itemsstart / flex-start, end / flex-end, center, stretch, baselinejustifystart / flex-start, end / flex-end, center, between / space-between, around / space-around, evenly / space-evenlygapNumber or string
< view display = " flex " flexDir = " row " items = " center " justify = " between " gap = { 12 } />
flex accepts a direction string as a shortcut — <view flex="col" /> is the same as <view display="flex" flexDir="col" />.
Prop Values bg, colorHex color opacityNumber or string visibilityvisible, hiddenfontSizeNumber or string fontWeightNumber (100–900) or name (see below) fontFamilyString textAlignleft, center, right, start, end, justifytextWrapwrap, nowrap / none, anywhere, break-wordwordBreaknormal, break-all, keep-all
fontWeight accepts a numeric weight or one of these names:
Name Number thin100extra-light / extralight / ultra-light / ultralight200light300normal / regular400medium500semi-bold / semibold / demi-bold / demibold600bold700extra-bold / extrabold / ultra-bold / ultrabold800black / heavy900
Prop Description rounded, roundedTL, roundedTR, roundedBR, roundedBLCorner radius. border, borderTop, borderRight, borderBottom, borderLeftBorder width. borderColorBorder color. outline, outlineColor, outlineOffsetFocus or emphasis outline.
< view translate = { [ 8 , 0 ] } rotate = { - 3 } scale = { 1.05 } hover : scale = { 1.08 } />
Prop Description translateNumber, [x, y], or { x, y }. translateX, translateYSingle-axis translate. rotateRotation in degrees. scaleNumber, [x, y], or { x, y }. scaleX, scaleYSingle-axis scale.
Prop Description cursorCursor shown while hovering. focusableAllows a view to receive focus and keyboard events. selectableAllows text inside a view to be selected.
< view scrollY h = { 320 } scrollbarWidth = { 6 } scrollbarRadius = { 999 } >
Prop Description scroll, scrollX, scrollYEnable scrolling. scrollbarWidthScrollbar thickness. scrollbarColorDefault scrollbar color. scrollbarHoverColorHover color. scrollbarActiveColorActive drag color. scrollbarRadiusScrollbar radius.
Prefix most visual props with hover:, active:, or focus:.
focus : outlineColor = " #60a5fa "
See Elements for element-specific props and Events for event handlers.