mirror of
https://github.com/hanzoai/cd-ui.git
synced 2026-10-30 20:42:45 +00:00
* feat: New components from Argo Rollotus UI in src/v2 directory Signed-off-by: Remington Breeze <[email protected]>
21 lines
405 B
TypeScript
21 lines
405 B
TypeScript
import * as React from 'react';
|
|
import {Alert} from './alert';
|
|
|
|
export default {
|
|
title: 'Components/Alert',
|
|
component: Alert,
|
|
argTypes: {
|
|
text: {control: {type: 'text'}},
|
|
style: {control: {disable: true}},
|
|
},
|
|
};
|
|
|
|
export const Primary = (args: any) => {
|
|
return <Alert {...args}>{args.text}</Alert>;
|
|
};
|
|
|
|
Primary.args = {
|
|
type: 'success',
|
|
text: 'Hello there!',
|
|
};
|