12345678910111213141516171819202122232425262728293031323334353637383940414243444546import React,{ ReactElement }from"react";import{ Text }from"@react-md/typography";import{ SimplePosition }from"@react-md/utils";import Container from"./Container";import TooltippedButton from"./TooltippedButton";const positions: SimplePosition[]=["above","right","below","left"];exportdefaultfunctionDemo(): ReactElement {return(<><Texttype="headline-6"margin="none">
Normal
</Text><Container>{positions.map((position)=>(<TooltippedButtonid={`normal-tooltip-${position}`}key={position}defaultPosition={position}tooltip="This is a tooltip">{position}</TooltippedButton>))}</Container><Texttype="headline-6"margin="top">
Dense
</Text><Container>{positions.map((position)=>(<TooltippedButtonid={`dense-tooltip-${position}`}key={position}defaultPosition={position}tooltip="This is a tooltip"dense>{position}</TooltippedButton>))}</Container></>);}