1.0.0 • Published 2 years ago

font-size-picker-menu v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Font Size Picker Menu

Demo

Live Demo

Installation & Usage

yarn add color-picker-menu

Include the Component

import React from 'react';
import { FontSizePickerMenu } from 'font-size-picker-menu';

const Component = () => {
  return <FontSizePickerMenu />;
};

Properties

PropertyDescriptionDefaultType
refreference of the button which opens the color picker menu. The position of the menu is based on this reference.
themelight or darklightstring
fontsexample: [{id: 1, value: '13', name: 'S' }]array
selectedname of the font. S, XL etcstring
selectedColorapplied as background to selected size or hoverstring
onChangewhen size is changed via click. It returns a font object with id, value and namefunc
onHidewhen the detected click is outside the color pickerfunc