Instructions to use ProTema/first-start with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- BERTopic
How to use ProTema/first-start with BERTopic:
from bertopic import BERTopic model = BERTopic.load("ProTema/first-start") - Notebooks
- Google Colab
- Kaggle
Download src/shared/ui/Button/Button.stories.tsx from ProTema/first-start: direct link, hf CLI and curl.
- Browser
- Download file 1.39 kB
-
https://huggingface.co/ProTema/first-start/resolve/main/src/shared/ui/Button/Button.stories.tsx
- Command line
-
hf download hf://ProTema/first-start/src/shared/ui/Button/Button.stories.tsx
-
curl -L -o Button.stories.tsx https://huggingface.co/ProTema/first-start/resolve/main/src/shared/ui/Button/Button.stories.tsx
1.39 kB
| import type { Meta, StoryObj } from '@storybook/react'; | |
| import { Button, ButtonSize, ButtonTheme } from './Button'; | |
| import Location from '@/shared/assets/icons/location.svg?react'; | |
| import UserIcon from '@/shared/assets/icons/user.svg?react'; | |
| // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export | |
| const meta = { | |
| title: 'Shared/Button', | |
| component: Button, | |
| parameters: { | |
| layout: 'centered', | |
| }, | |
| tags: ['autodocs'], | |
| // More on argTypes: https://storybook.js.org/docs/api/argtypes | |
| // argTypes: { | |
| // backgroundColor: { control: 'color' }, | |
| // }, | |
| } satisfies Meta<typeof Button>; | |
| export default meta; | |
| type Story = StoryObj<typeof meta>; | |
| export const Primary: Story = { | |
| args: { | |
| theme: ButtonTheme.PRIMARY, | |
| children: 'Нажми меня', | |
| size: ButtonSize.XL, | |
| }, | |
| }; | |
| export const PrimaryWithIcon: Story = { | |
| args: { | |
| theme: ButtonTheme.PRIMARY, | |
| children: 'Нажми меня', | |
| size: ButtonSize.XL, | |
| icon: <UserIcon />, | |
| }, | |
| }; | |
| export const Navigation: Story = { | |
| args: { | |
| theme: ButtonTheme.NAVIGATION, | |
| children: 'Нажми меня', | |
| }, | |
| }; | |
| export const NavigationIcon: Story = { | |
| args: { | |
| theme: ButtonTheme.NAVIGATION, | |
| children: 'Нажми меня', | |
| icon: <Location />, | |
| }, | |
| }; | |