import type { Meta, StoryObj } from '@storybook/react-vite';
import argTypes from '../../../.storybook/sgdsArgTypes';
import Tabs from './Tabs';
const meta = {
title: 'Components/Tabs',
component: Tabs,
argTypes: {
baseId: {
description: 'A string that IDs for subcomponents are derived from.',
type: {
name: 'string',
required: true
}
},
headingLevel: argTypes.headingLevel({
description: 'Heading level to use for the tab container\'s title',
}),
isBorderless: {
description: 'Whether to give each tab a border',
control: 'boolean'
},
isManual: {
control: 'boolean',
description: 'Whether to require manual tab activation',
type: 'boolean'
},
title: {
description: 'The title of the tab list',
type: 'string'
},
children: argTypes.children()
},
args: {
baseId: 'my-tabs',
children: [
Search for training courses and funding
A wide range of training courses for your employees are available.
Opportunities include distance learning, short courses and vocational training.
Visit My World of Work to search for training courses.
You can also search for training courses, and funding towards training.
,
Choosing an apprenticeship for your business
Apprenticeships can help you address skills gaps in your business. The government provides help with the cost of training an apprentice.
There are 3 different types of apprenticeship:
- Foundation Apprenticeships let school or college students do short-term work experience at your business as part of a qualification
- Modern Apprenticeships let your new or current employees gain a qualification while working in a paid role at your business
- Graduate Apprenticeships let your new or current employees gain a degree while working in a paid role at your business
You can find more information on the apprenticeships.scot website.
,
Extra skills support
The Skills for Growth service can offer skills advice to businesses with fewer than 250 employees.
Businesses of any size can get skills advice by completing a skills support request form.
Businesses of any size can also get skills advice by calling Skills Development Scotland on 0800 783 6000.
],
title: 'My tabs'
}
} satisfies Meta;
export default meta;
type Story = StoryObj;
export const Default: Story = {
};
export const ManualActivation: Story = {
args: {
isManual: true
}
};
export const NoBorder: Story = {
args: {
isBorderless: true
}
};
export const DifferentHeadingLevel: Story = {
args: {
headingLevel: 'h4'
}
};