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

PropTypeRequiredDescription
fillstringNo—
strokestringNo—
strokeWidthnumberNo—

Inherits additional props from IBaseComponent.