skinsleft.blogg.se

Font picker react
Font picker react







font picker react
  1. Font picker react software#
  2. Font picker react code#

Software without restriction, including without limitation the rights to use,Ĭopy, modify, merge, publish, distribute, sublicense, and/or sell copies of the This software and associated documentation files (the "Software"), to deal in the Permission is hereby granted, free of charge, to any person obtaining a copy of If you just want to watch changes to src and rebuild lib, run npm run watch (this is useful if you are working with npm link). To build, watch and serve the examples (which will also watch the component source), run npm start. A UMD bundle is also built to dist, which can be included without the need for any build system. A transpiled CommonJS version (generated with Babel) is available in lib for use with node.js, browserify and webpack.

Font picker react code#

NOTE: The source code for the component is in src. To override styles in your own stylesheet you should use a more precise selector e.g div.ReactFontPicker Development ( src, lib and the build process) keyframes for ripple animation ripple-animation * The Material design ripple effect itself */ĭiv.ReactFontPicker_Wrapper. * Elements that have the Material design click ripple effect */

font picker react

* Option (font) in the dropdown option list */ * The option that is displayed in the main field */ * Label when a font is selected (floating above the selected option) */

font picker react

Here are the component CSS classnames for quick reference: ReactFontPicker rule is not found in the DOM. The default one is injected dynamically if the. You can supply your own stylesheet if the default material design-style doesn't fit for you. It should take one argument which is the selected font's name as string. When a font is selected and the option list is opened again, the selected font text will display this color.Ī function that's called when a font is selected. See previews of each font in the font option list when selecting fonts The list indices should be strings e.g "Arial" The component works as standalone even if you don't supply it with any properties. Var FontPicker = require('react-font-picker') Ĭonsole.log(selectedFont) // Will log font name (string) when being selectedĪll properties are optional.









Font picker react