TabButton

Type: React component

How to get TabButton?

JavaScript

import { TabButton } from 'fds/components';

Creates a button with a Label for use within TabButtons. Optionally visualizes an active state which can be used when the represented tab is visible.

Props

  1. isActive

    (Optional)

    Type: Boolean

    Default value

  2. isHighlighted

    (Optional)

    Type: Boolean

    Whether or not the component should be rendered in a highlighted state.

    Default value

  3. label

    (Required)

    Type: String

    The human readable label displayed in the component.

  4. onClick

    (Required)

    Type: Function

    A callback that is called whenever the component is clicked and is not in a disabled state.

    For more information about React and "events", check the React documentation

    Arguments