ComponentsShape
Ellipse
Ellipse renders an oval surface inside the supplied frame, aligned with SwiftUI's Ellipse.
Example
Requires React 18.2+ or 19 and shared styles. See setup.
Default
Loading preview…
Code
'use client';
import { Ellipse } from '@swiftuijs/ui';
export default function Example() {
return (<Ellipse fill="#34c759" style={{ width: 180, height: 120 }}></Ellipse>);
}More examples
With Stroke
API reference
| Prop | Type | Required | Description |
|---|---|---|---|
fill | string | No | — |
stroke | string | No | — |
strokeWidth | number | No | — |
Inherits additional props from IBaseComponent.