Dashboard sipadu mbip
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Card.d.ts 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. import * as React from 'react';
  2. import CardImg from './CardImg';
  3. import { BsPrefixComponent } from './helpers';
  4. export class CardTitle<
  5. As extends React.ElementType = 'div'
  6. > extends BsPrefixComponent<As> {}
  7. export class CardSubtitle<
  8. As extends React.ElementType = 'div'
  9. > extends BsPrefixComponent<As> {}
  10. export class CardBody<
  11. As extends React.ElementType = 'div'
  12. > extends BsPrefixComponent<As> {}
  13. export class CardLink<
  14. As extends React.ElementType = 'a'
  15. > extends BsPrefixComponent<As> {}
  16. export class CardText<
  17. As extends React.ElementType = 'p'
  18. > extends BsPrefixComponent<As> {}
  19. export class CardHeader<
  20. As extends React.ElementType = 'div'
  21. > extends BsPrefixComponent<As> {}
  22. export class CardFooter<
  23. As extends React.ElementType = 'div'
  24. > extends BsPrefixComponent<As> {}
  25. export class CardImgOverlay<
  26. As extends React.ElementType = 'div'
  27. > extends BsPrefixComponent<As> {}
  28. export interface CardProps {
  29. bg?:
  30. | 'primary'
  31. | 'secondary'
  32. | 'success'
  33. | 'danger'
  34. | 'warning'
  35. | 'info'
  36. | 'dark'
  37. | 'light';
  38. text?:
  39. | 'primary'
  40. | 'secondary'
  41. | 'success'
  42. | 'danger'
  43. | 'warning'
  44. | 'info'
  45. | 'dark'
  46. | 'light'
  47. | 'white'
  48. | 'muted';
  49. border?:
  50. | 'primary'
  51. | 'secondary'
  52. | 'success'
  53. | 'danger'
  54. | 'warning'
  55. | 'info'
  56. | 'dark'
  57. | 'light';
  58. body?: boolean;
  59. }
  60. declare class Card<
  61. As extends React.ElementType = 'div'
  62. > extends BsPrefixComponent<As, CardProps> {
  63. static Img: typeof CardImg;
  64. static Title: typeof CardTitle;
  65. static Subtitle: typeof CardSubtitle;
  66. static Body: typeof CardBody;
  67. static Link: typeof CardLink;
  68. static Text: typeof CardText;
  69. static Header: typeof CardHeader;
  70. static Footer: typeof CardFooter;
  71. static ImgOverlay: typeof CardImgOverlay;
  72. }
  73. export default Card;