FontSizePicker

Used for font sizes. Can be used to set a custom font size or a font size from a list.

<FontSizePicker
	fontSizes={[
		{
			name: __( 'Small' ),
			slug: 'small',
			size: 12,
		},
		{
			name: __( 'Big' ),
			slug: 'big',
			size: 26,
		},
	]}
	value={ 26 }
	fallbackFontSize={ 12 }
	onChange={ ( newFontSize ) => console.log(newFontSize) }
	withSlider
/>
GitHub URL
Classification

Category

Components