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