https://github.com/tohsaka888/react-animate-tab
https://github.com/tohsaka888/react-animate-tab
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tohsaka888/react-animate-tab
- Owner: tohsaka888
- Created: 2023-01-27T06:48:19.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-05-06T05:16:30.000Z (about 2 months ago)
- Last Synced: 2025-05-06T06:27:33.982Z (about 2 months ago)
- Language: TypeScript
- Size: 170 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-anime-tab
[](https://github.com/tohsaka888/create-react-swc-app/blob/master/LICENSE)
[](https://github.com/prettier/prettier)## example
```tsx
import React, { Key, useState } from "react";
import "@/style/global.css";
import { Tabs } from "@source/index";function App() {
const [selectedKeys, setSelectedKeys] = useState([]);return (
({
name: "item" + idx,
id: "item" + idx,
icon:1,
}))}
defaultSelectedKeys={["item0"]}
style={{ height: "60px" }}
itemStyle={{ padding: "0px 12px" }}
itemSelectedStyle={{ padding: "0px 12px", color: "red" }}
lineStyle={{ background: "red" }}
// selectedKeys={selectedKeys}
// onSelect={(id, item) => {
// setSelectedKeys([...selectedKeys, id]);
// }}
/>
);
}export default App;
```