
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-slide-craft
Advanced tools
Library for creating slides in React.
English | 日本語
npm i react-slide-craft
# or
yarn add react-slide-craft
# or
pnpm add react-slide-craft
It is easy to use, just call SlideCore at the top of the application and pass an array of slides (function components) as shown below.
import { SlideCore } from "react-slide-craft"
const App = () => {
const slides = [
ComponentA,
ComponentB,
]
return (
<SlideCore
slides={slides}
/>
)
}
| is passed to a text component, it is emphasized with the specified styleYou can define a default slide style.
You can do this by passing the slide style to baseSlideStyle of SlideCore as shown below.
<SlideCore
slides={slides}
baseSlideStyle={
textColor="black"
backgroundColor="white"
padding="20 25"
cornerRadius={20}
}
/>
When using text in slides, please use the provided text component. If you would like to use a customized text component instead of the prepared text component, please use CustomText as shown below.
The value specified for size should be a string, passing a number.
<CustomText
size="20"
text="hello"
/>
There may be use cases where you want to create your own slides in addition to the templates provided. In that case, please wrap the component using SlideBase as shown below.
[!CAUTION] When creating your own slides, be sure to wrap them in
SlideBaseso that the layout will not be corrupted.
const CustomSlideTemplate = ({
children,
title,
} : {
children: React.ReactNode,
title: string,
}) => {
return (
<SlideBase>
<p>{title}</p>
{children}
</SlideBase>
)
}
If you do not want to apply some of the base styles defined in SlideCore when applying your own slides, add objects created with genSlideObject to the array when passing to slides in SlideCore as shown below.
const App = () => {
const slides = [
ComponentA,
genSlideObject(CustomSlide) // Toggle base style with options isBaseStyle
]
return (
<SlideCore
slides={slides}
/>
)
}
Click here for more information about Components.
ReactSlideCraft library is created by HASURO.
FAQs
Library for creating slides in React.
The npm package react-slide-craft receives a total of 0 weekly downloads. As such, react-slide-craft popularity was classified as not popular.
We found that react-slide-craft demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.