Seat

import Seat, { SeatLegend } from "@kiwicom/orbit-components/lib/Seat";
<Seat />

Props

NameTypeDefaultDescription
dataTeststringOptional prop for testing purposes.
idstringid of the element.
sizeenummediumSize of Seat component.
typeenumdefaultVisual type of Seat. If unavailable, the element becomes disabled.
pricestringPrice of Seat. Displayed as text underneath the svg.
labelstringLabel text inside of a Seat. Not announced by screen readers.
selectedbooleanDisplays Seat as selected.
onClick() => void \| PromiseFunction for handling onClick event.
aria-labelledbystringId(s) of elements that announce the component to screen readers.
titlestringAdds title title to svg element. Announced by screen readers.
descriptionstringAdds description to svg element. Announced by screen readers.

SeatLegend

NameTypeDefaultDescription
dataTeststringOptional prop for testing purposes.
idstringid of the element.
typeenumdefaultVisual type of the rendered seat icon.
labelstringLabel text to be displayed next to the seat icon.
aria-labelstringAdds aria-label attribute to the rendered SVG element. Announced by screen readers.

enum

sizetype
"small""default"
"medium""legroom"
"unavailable"