JSFiddle - React, Tailwind, and code Playground

HTML

<div class="options">
		<input type="checkbox" name="title"><label>Title</label>
		<input type="checkbox" name="author"><label>Author</label>
		<input type="checkbox" name="category"><label>Category</label>
	</div>
	<div class="container">
		<form method="post">
			<input type="text" name="title" placeholder="Title:">
			<input type="text" name="author" placeholder="Author:">
			<input type="text" name="category" placeholder="Category:">
			<input type="submit" value="Submit">
		</form>
	</div>

CSS

body {
		line-height: 1.5;
	}
	
	input { 
		display: block;
		margin: 10px 0 0;	
	}
	
	input[type="checkbox"] { display: inline;}
	
	label { margin: 0 10px 0 5px;}

JavaScript

$(document).ready(function(){
	$('input[type="checkbox"]').click(function(){
		$('input[type="text"]').toggle();
	});
});