Interface: ShapeOptions
Configuration options for the Shape and Card components.
Extends
Properties
| Property | Type | Description |
|---|---|---|
align? | Align | - |
background? | string | Background fill color. |
blur? | number | Blur in virtual pixels (default: 0). |
borderColor? | string | Border stroke color. |
brightness? | number | Brightness multiplier (default: 1). |
children? | ElementChild | Optional child elements or text nodes. |
className? | string | - |
color? | string | Foreground CSS color (default: component/theme color). |
customPositioned? | boolean | Whether this element manages its own CSS transform / positioning (disables stage translate3d). |
doubleBorder? | boolean | Double border outline (e.g. for final states, nested rings). |
end? | number | Trim-path end offset from 0.0 to 1.0 (default: 1). |
enterDelay? | number | Delay in seconds before entering scene transition begins. |
enterDuration? | number | Duration in seconds for entering scene transition. |
exitDelay? | number | Delay in seconds before exiting scene transition begins. |
exitDuration? | number | Duration in seconds for exiting scene transition. |
flow? | FlowEffect | Continuous ambient stroke animation ("none" |
height? | Size | Height in stage units or CSS length (default: content size). |
highlighted? | boolean | Glowing outline highlight (default: false). |
id? | string | - |
onActivate? | () => void | - |
onDeactivate? | () => void | - |
onMount? | () => void | - |
onUnmount? | () => void | - |
opacity? | number | Whole-element opacity from 0 to 1 (default: 1). |
origin? | ElementAnchor | Which point of the element sits on its coordinate (default: "top-left"). |
position? | Position | - |
rotation? | number | Rotation in degrees (default: 0). |
scale? | number | Scale multiplier (default: 1). |
size? | Size | Both dimensions in stage units or CSS length (default: unset). |
start? | number | Trim-path start offset from 0.0 to 1.0 (default: 0). |
strokeWidth? | number | Stroke outline width in virtual canvas pixels (default: 2). |
style? | Properties<0 | string & object, string & object> | - |
text? | string | Optional text content inside the shape container. |
theme? | Partial<ThemeConfig> | - |
variant? | ShapeVariant | Surface material preset: "surface" (background fill, default), "ghost" (outline), or "solid" (opaque fill). |
width? | Size | Width in stage units or CSS length (default: content size). |
x? | PositionCoord | Horizontal position in stage units (default: 0). |
y? | PositionCoord | Vertical position in stage units (default: 0). |