Skip to content

Commit a1f7c91

Browse files
author
e.mukhametkhanov
committed
tech(Snackbar): export BasicProps type from package
1 parent 40697ae commit a1f7c91

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

packages/vkui/src/components/Snackbar/Snackbar.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ import {
2929
} from './utils';
3030
import styles from './Snackbar.module.css';
3131

32+
export type { BasicProps as SnackbarBasicProps };
33+
3234
const placementClassNames = {
3335
'top-start': styles.placementTopStart,
3436
'top': styles.placementTop,

packages/vkui/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export type { ScreenSpinnerContextProps } from './components/ScreenSpinner/conte
143143
export { Snackbar } from './components/Snackbar/Snackbar';
144144
export { useSnackbarManager } from './hooks/useSnackbarManager';
145145
export type { SnackbarApi, CustomSnackbar, UseSnackbar } from './hooks/useSnackbarManager';
146-
export type { SnackbarProps } from './components/Snackbar/Snackbar';
146+
export type { SnackbarProps, SnackbarBasicProps } from './components/Snackbar/Snackbar';
147147
export { Tooltip } from './components/Tooltip/Tooltip';
148148
export { useTooltip } from './components/Tooltip/useTooltip';
149149
export type {

0 commit comments

Comments
 (0)