Skip to content

Commit

Permalink
export tab context
Browse files Browse the repository at this point in the history
  • Loading branch information
jivey committed Mar 4, 2024
1 parent 0795b64 commit 27f117b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import * as AC from "react-aria-components";
import * as RAC from "react-aria-components";
import { colors } from "../theme";
import styled, { css } from "styled-components";
import { palette } from "../../src/theme/palette";
Expand All @@ -9,7 +9,7 @@ type TabsProps = {
size?: "large" | "medium" | "small";
className?: string;
children?: React.ReactNode;
} & AC.TabsProps;
} & RAC.TabsProps;

const buttonBarCss = css`
[role="tablist"] {
Expand Down Expand Up @@ -64,7 +64,7 @@ const tabsCss = css`
}
`;

const StyledTabs = styled(AC.Tabs)`
const StyledTabs = styled(RAC.Tabs)`
[role="tablist"] {
overflow-x: auto;
overscroll-behavior: contain;
Expand Down Expand Up @@ -113,4 +113,4 @@ export const Tabs = ({
);
};

export { TabList, Tab, TabPanel } from "react-aria-components";
export { TabList, Tab, TabPanel, TabsContext, TabListStateContext } from "react-aria-components";

0 comments on commit 27f117b

Please sign in to comment.