ShivGyan

Button

01

Types

Choose the level of emphasis that matches the action.

02

States

Select a button type to review every supported interaction state.

03

Try it before you use it

Change the controls, inspect every state, then copy production-ready React code.

PreviewDesktopTabletMobile
04

Dimensions and anatomy

Use these measurements to reproduce ShivGyan buttons consistently in design and code.

Medium secondary button
Label width + 36px
40px
18Continue18
8px radius
  1. 1
    Container

    Secondary white surface with a 1px #D4D4D8 border.

  2. 2
    Label

    Centered, sentence case, and written with a clear action verb.

  3. 3
    Horizontal padding

    Padding changes by size while the label remains vertically centered.

  4. 4
    Shape and focus

    8px radius; keyboard focus uses a 3px visible ring with 3px offset.

Size scale

Three supported sizes

The control height, label size, and horizontal padding scale together.

Small32px
Height
32px
Horizontal padding
13px
Label size
11px
Medium40px
Height
40px
Horizontal padding
18px
Label size
13px
Large48px
Height
48px
Horizontal padding
22px
Label size
14px
Tokens

Shared construction values

These values remain consistent across primary, secondary, tertiary, and destructive buttons.

PropertyValuePurpose
Corner radius8pxConsistent control shape
Content gap8pxSpace between icon, spinner, and label
Border1pxDefines primary and outlined containers
Label weight650Maintains legibility at compact sizes
Interaction160msHover background, lift, and shadow transition
Icon button40 × 40pxCompact square action footprint