File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 2020 "test" : " react-scripts test" ,
2121 "eject" : " react-scripts eject" ,
2222 "copy_dsfr_dist_to_public" : " node node_modules/@codegouvfr/react-dsfr/bin/copy_dsfr_dist_to_public.js" ,
23- "prestart" : " yarn copy_dsfr_dist_to_public" ,
24- "prebuild" : " yarn copy_dsfr_dist_to_public"
23+ "only_include_used_icons" : " node node_modules/@codegouvfr/react-dsfr/bin/only_include_used_icons.js" ,
24+ "prestart" : " yarn copy_dsfr_dist_to_public && yarn only_include_used_icons" ,
25+ "prebuild" : " yarn copy_dsfr_dist_to_public && yarn only_include_used_icons"
2526 },
2627 "eslintConfig" : {
2728 "extends" : [
Original file line number Diff line number Diff line change 2828 < % }); %>
2929
3030 < link rel ="stylesheet " href ="%PUBLIC_URL%/dsfr/dsfr.min.css " />
31+ < link rel ="stylesheet " href ="%PUBLIC_URL%/dsfr/utility/icons/icons.min.css " />
3132
3233 <!--
3334 Notice the use of %PUBLIC_URL% in the tags above.
Original file line number Diff line number Diff line change 11import artworkLightSvgUrl from "@codegouvfr/react-dsfr/dsfr/artwork/light.svg" ;
22import artworkDarkSvgUrl from "@codegouvfr/react-dsfr/dsfr/artwork/dark.svg" ;
33import artworkSystemSvgUrl from "@codegouvfr/react-dsfr/dsfr/artwork/system.svg" ;
4- import { useIsDark } from "@codegouvfr/react-dsfr" ;
4+ import { useIsDark , fr } from "@codegouvfr/react-dsfr" ;
55
66export function App ( ) {
77 const { isDark, setIsDark } = useIsDark ( ) ;
88
99 return (
1010 < >
11+
12+ < button className = { fr . cx ( "fr-btn" , "fr-icon-checkbox-circle-line" , "fr-btn--icon-left" ) } >
13+ Label bouton MD
14+ </ button >
15+ < span className = "fr-icon-ancient-gate-fill" aria-hidden = "true" > </ span >
16+ < i className = "fr-icon-ancient-gate-fill" aria-hidden = "true" />
17+
18+ < button className = { fr . cx ( "fr-btn" , "ri-24-hours-fill" , "fr-btn--icon-left" ) } >
19+ Download
20+ </ button >
21+
1122 < h1 > Color Scheme: { isDark ? "dark" : "light" } </ h1 >
1223 < button onClick = { ( ) => setIsDark ( true ) } > Set color scheme to dark</ button >
1324 < button onClick = { ( ) => setIsDark ( false ) } > Set color scheme to light</ button >
You can’t perform that action at this time.
0 commit comments