@base-ui/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
30 lines • 1.18 kB
JavaScript
import { TransitionStatusDataAttributes } from "../../internals/stateAttributesMapping.js";
export let TabsPanelDataAttributes = function (TabsPanelDataAttributes) {
/**
* Indicates the index of the tab panel.
*/
TabsPanelDataAttributes["index"] = "data-index";
/**
* Indicates the direction of the activation (based on the previous active tab).
* @type {'left' | 'right' | 'up' | 'down' | 'none'}
*/
TabsPanelDataAttributes["activationDirection"] = "data-activation-direction";
/**
* Indicates the orientation of the tabs.
* @type {'horizontal' | 'vertical'}
*/
TabsPanelDataAttributes["orientation"] = "data-orientation";
/**
* Present when the panel is hidden.
*/
TabsPanelDataAttributes["hidden"] = "data-hidden";
/**
* Present when the panel is animating in.
*/
TabsPanelDataAttributes[TabsPanelDataAttributes["startingStyle"] = TransitionStatusDataAttributes.startingStyle] = "startingStyle";
/**
* Present when the panel is animating out.
*/
TabsPanelDataAttributes[TabsPanelDataAttributes["endingStyle"] = TransitionStatusDataAttributes.endingStyle] = "endingStyle";
return TabsPanelDataAttributes;
}({});