10.2.2 • Published 1 year ago
styles-build v10.2.2
Styles build
Styles build es una npm que te ayudara a organizar mas tu css en tu proyecto de react
Intalaciones
npm i styles-build@latest
yarn add styles-build@latest
pnpm add styles-build@latest
bun add styles-build@latest
Ejemplos
Javascript
import React from "react";
import styled from "styles-build";
export default function App() {
const StyledDiv = styled("h1")({
animation: {
duration: '4s',
timingFunction: 'ease-in-out',
delay: '1s',
iterationCount: 'infinite',
animationStyle: `@keyframes customAnimation {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}`
},
styles: {
color: red,
fontSize: 100px,
},
});
const StyledDiv2 = styled("h1")({
animation: {
duration: '4s',
timingFunction: 'ease-in-out',
delay: '1s',
iterationCount: 'infinite',
animationStyle: `@keyframes customAnimation {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}`
},
styles: {
color: red,
fontSize: 100px,
},
});
return (
<>
<StyledDiv>Hello World!</StyledDiv>
<StyledDiv2>Hola mundo2</StyledDiv2>
</>
);
}
Typescript
import React from "react";
import styled from "styles-build";
interface StyledDivProps {
animation: string;
styles: string;
duration: string;
timingFunction: string;
delay: string;
infinite: boolean;
iterationCount: number;
animationStyle: string;
}
const App: React.FC = () => {
const StyledDiv = styled("h1")<StyledDivProps>({
animation: {
duration: '4s',
timingFunction: 'ease-in-out',
delay: '1s',
iterationCount: 'infinite',
animationStyle: `@keyframes customAnimation {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}`
},
styles: {
color: red,
fontSize: 100px,
},
});
const StyledDiv2 = styled("h1")<StyledDivProps>({
animation: {
duration: '4s',
timingFunction: 'ease-in-out',
delay: '1s',
iterationCount: 'infinite',
animationStyle: `@keyframes customAnimation {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}`
},
styles: {
color: red,
fontSize: 100px,
},
});
return (
<>
<StyledDiv>Hello World!</StyledDiv>
<StyledDiv2>Hola mundo2</StyledDiv2>
</>
);
};
export default App;
10.2.1
1 year ago
10.2.2
1 year ago
10.1.9
1 year ago
10.1.4
1 year ago
10.1.5
1 year ago
10.1.6
1 year ago
10.1.7
1 year ago
10.1.8
1 year ago
10.1.1
1 year ago
10.1.2
1 year ago
10.1.3
1 year ago
10.1.0
1 year ago
10.0.10
1 year ago
10.0.9
1 year ago
10.0.8
1 year ago
10.0.7
1 year ago
10.0.6
1 year ago
10.0.5
1 year ago
10.0.4
1 year ago
10.0.3
1 year ago
10.0.2
1 year ago
10.0.1
1 year ago
10.0.0
1 year ago
1.0.39
1 year ago
1.0.38
1 year ago
1.0.37
1 year ago
1.0.36
1 year ago
1.0.35
1 year ago
1.0.34
1 year ago
1.0.33
1 year ago
1.0.32
1 year ago
1.0.31
1 year ago
1.0.30
1 year ago
1.0.29
1 year ago
1.0.28
1 year ago
1.0.27
1 year ago
1.0.26
1 year ago
1.0.25
1 year ago
1.0.24
1 year ago
1.0.23
1 year ago
1.0.22
1 year ago
1.0.21
1 year ago
1.0.20
1 year ago
1.0.19
1 year ago
1.0.18
1 year ago
1.0.17
1 year ago
1.0.16
1 year ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago