Button

  • Web
  • Native

Reference

Gympass <Button /> component implements all our design guidelines such as default spacings, borders and color pallete tokens. You can use all differente compounds like <Button.Outline /> and <Button.Text /> combining with their props such as small or inverted so the button become the desired variation.

Usage

Small

import { Box, Button } from '@gympass/yoga';

Primary

import { Box, Button } from '@gympass/yoga';

Full

import { Box, Button } from '@gympass/yoga';

As an anchor

import { Box, Button } from '@gympass/yoga';

With icon

import { Box, Button } from '@gympass/yoga';
import { Booking } from '@gympass/yoga-icons';

With Loading

import { Booking } from '@gympass/yoga-icons';
import { Box, Text, Checkbox, Button } from '@gympass/yoga';

Inverted

import { Box, Button } from '@gympass/yoga';

Disabled

import { Box, Button } from '@gympass/yoga';

Props

PropDescriptionTypeDefaultRequired
Made with ❤️ by Gympass • github