react-presentable
Version:
This is a library to create slideshows using react
62 lines (49 loc) • 1.09 kB
TypeScript
import React, { ReactNode } from 'react'
declare type CSSProperties = React.CSSProperties
declare interface PresentationTheme {
backgroundColor?: string
textColor?: string
}
declare interface Props {
/**
* The slides in the presentation.
*/
children?: ReactNode
/**
* Override styling of the presentation.
*/
style?: CSSProperties
/**
* The theme of your presentation.
* backgroundColor?: string
* textColor?: string
*/
theme?: PresentationTheme
/**
* Display a animated progress bar or not.
* @default true
*/
showProgressBar?: boolean
/**
* Display left and right arrows for changing slides.
* @default true
*/
showArrows?: boolean
/**
* The CSS class of the presentation element
*/
className?: CSSProperties
}
declare const Presentation: React.FC<Props>
declare interface SlideProps {
/**
* The content of the slide.
*/
children?: ReactNode
/**
* Override styling of the slide.
*/
style?: CSSProperties
}
export default Presentation
export declare const Slide: React.FC<SlideProps>