Property | Type | Description |
---|---|---|
color | string | Sets the color of the text. |
height | number | Sets the height of a component. |
hidden | bool | Sets the visibility of a component. |
horizontalAlignment | string | Sets the horizontal alignment of the component's content Property value "left", "center", "right" |
margin | string | Sets the outer margin of a component. E.G. "30px 20px" |
padding | string | Sets the padding inside a component. E.G. "30px 20px" |
verticalAlignment | string | Sets the vertical alignment of the component's content. Property value "top", "center", "bottom" |
width | number | Sets the width of a component. |
import React, { Component } from 'react';
import { Label } from 'react-desktop/macOs';
export default class extends Component {
render() {
return (
<Label>My Label</Label>
);
}
}