mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
28 lines
665 B
TypeScript
28 lines
665 B
TypeScript
|
import { Meta } from '@storybook/react';
|
||
|
import { UIRouter, pushStateLocationPlugin } from '@uirouter/react';
|
||
|
|
||
|
import { Link } from '@/portainer/components/Link';
|
||
|
|
||
|
import { Breadcrumbs } from './Breadcrumbs';
|
||
|
|
||
|
const meta: Meta = {
|
||
|
title: 'Components/Header/Breadcrumbs',
|
||
|
component: Breadcrumbs,
|
||
|
};
|
||
|
|
||
|
export default meta;
|
||
|
|
||
|
export function Example() {
|
||
|
return (
|
||
|
<UIRouter plugins={[pushStateLocationPlugin]}>
|
||
|
<Breadcrumbs>
|
||
|
<Link to="portainer.endpoints">Environments</Link>
|
||
|
<Link to="portainer.endpoints.endpoint({id: endpoint.Id})">
|
||
|
endpointName
|
||
|
</Link>
|
||
|
String item
|
||
|
</Breadcrumbs>
|
||
|
</UIRouter>
|
||
|
);
|
||
|
}
|