To trigger an operation.
A button means an operation (or a series of operations). Clicking a button will trigger corresponding business logic.
We provide 5 types of button:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import React from 'react';
import { Button } from 'james-ui-custom';
interface Props { }
const Apps: React.FC = (props: Props) => {
return (
<>
<Button type='default'>Default Button</Button>
<Button type='primary'>Primary Button</Button>
<Button type="text">Text Button</Button>
<Button type="link">Link Button</Button>
</>
)
}
export default Apps;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import React from 'react';
import { Button } from 'james-ui-custom';
interface Props { }
const Apps: React.FC = (props: Props) => {
return (
<>
<Button type='default' disabled={true}>Default Button</Button>
<Button type='dashed' disabled={true}>Dashed Button</Button>
<Button type="text" disabled={true}>Text Button</Button>
<Button type="link" disabled={true}>Link Button</Button>
</>
)
}
export default Apps;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import React from 'react';
import { Button } from 'james-ui-custom';
interface Props { }
const Apps: React.FC = (props: Props) => {
return (
<>
<Button type='default' loading={true}>Loading</Button>
</>
)
}
export default Apps;