Orbiter API
import { Orbiter } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
animation | OrbiterAnimation | |
centerSize | number | string | |
children | React.ReactNode | |
delay | number | string | |
direction | OrbiterDirection | |
duration | number | string | |
elevation | OrbiterElevation | |
iconSize | number | string | |
itemSize | number | string | |
orbitRadius | number | string | |
padding | number | string | |
path | boolean | |
paused | boolean | |
pauseOnFocus | boolean | |
pauseOnHover | boolean | |
pauseOnItemHover | boolean | |
radius | number | string | |
reverse | boolean | |
ringGap | number | string | |
rings | number | string | |
showPaths | boolean | |
size | OrbiterSize | |
speed | number | string | |
startAngle | number | string | |
surfaceRadius | number | string | |
tone | OrbiterTone | |
variant | OrbiterVariant |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Orbiter.Item props
| Prop | Type | Description |
|---|---|---|
as | keyof JSX.IntrinsicElements | |
children | React.ReactNode | |
clickable | boolean | |
disabled | boolean | |
href | string | |
rel | string | |
target | string | |
type | 'button' | 'submit' | 'reset' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Orbiter.Center props
| Prop | Type | Description |
|---|---|---|
as | keyof JSX.IntrinsicElements | |
children | React.ReactNode |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-orbiter>
Orbiter renders the ui-orbiter custom element from @editora/ui-core, which can also be used without React.
Attributes: animation, center-size, delay, direction, duration, elevation, icon-size, item-size, orbit-radius, padding, path, pause-on-focus, pause-on-hover, pause-on-item-hover, paused, radius, reverse, ring-gap, rings, show-paths, size, speed, start-angle, surface-radius, tone, variant