Skip to main content

SwaggerHub Button

Overview

This component is a button themed with SwaggerHub's color palette. It should be used for external links for their websites.

Details

CriteriaComponent Meets Criteria
Has hover stylesYes
Has light and dark modeYes
Has brand themingNo

Component Props

Prop NameTypeDescription
redirectURLstringRedirect to this URL on click
mainTextstringMain text on the button
subTextstringAccompanying text on the button
colorSchemestringColor scheme choice for logo outline

Example Code

import SwaggerHubButton from '@site/src/elements/SwaggerHubButton';

<div style={{ marginBottom: '30px' }}>
<SwaggerHubButton
mainText={'Swagger Endpoint'}
subText={'DELETE'}
redirectURL={'/'}
colorScheme={'delete'}
/>
</div>