Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 881 Bytes

toolbar.md

File metadata and controls

27 lines (22 loc) · 881 Bytes

Toolbar

Properties

Property Type Description
height number Sets the height of a component.
horizontalAlignment string Sets the horizontal alignment of the component's content
Property value "left", "center", "right"
verticalAlignment string Sets the vertical alignment of the component's content.
Property value "top", "center", "bottom"
width number Sets the width of a component.

Examples

import React, { Component } from 'react';
import { TitleBar, Toolbar, Text } from 'react-desktop/macOs';

export default class extends Component {
  render() {
    return (
      <TitleBar controls inset>
        <Toolbar height="43" horizontalAlignment="center"/>
      </TitleBar>
    );
  }
}