Sha256: 3f37b7129d8f94f98d7497def2407c24dde38c9dc605d79c8fc385e22eae1e4b

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

type Props = {
  className: string;
  name: string;
  onClick: (evt: React.MouseEvent) => void;
};

export default function ToolbarButton(props: Props) {
  return (
    <a
      title={props.name}
      className={"button " + props.className}
      onClick={props.onClick}>
      <i className={"fa-solid fa-" + props.className} />
    </a>
  );
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pages_core-3.15.5 app/javascript/components/RichTextArea/ToolbarButton.tsx