You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					15 lines
				
				452 B
			
		
		
			
		
	
	
					15 lines
				
				452 B
			| 
								 
											3 years ago
										 
									 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * Hyphenates a camelcased CSS property name, for example:
							 | 
						||
| 
								 | 
							
								 *
							 | 
						||
| 
								 | 
							
								 *   > hyphenateStyleName('backgroundColor')
							 | 
						||
| 
								 | 
							
								 *   < "background-color"
							 | 
						||
| 
								 | 
							
								 *   > hyphenateStyleName('MozTransition')
							 | 
						||
| 
								 | 
							
								 *   < "-moz-transition"
							 | 
						||
| 
								 | 
							
								 *   > hyphenateStyleName('msTransition')
							 | 
						||
| 
								 | 
							
								 *   < "-ms-transition"
							 | 
						||
| 
								 | 
							
								 *
							 | 
						||
| 
								 | 
							
								 * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
							 | 
						||
| 
								 | 
							
								 * is converted to `-ms-`.
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								export default function hyphenateStyleName(string: string): string;
							 |