Skip to content

Commit

Permalink
Update Playground component to show code editor by default
Browse files Browse the repository at this point in the history
- Changed the initial state of `showCodeEditor` in `Playground.tsx` from `false` to `true`, ensuring the code editor is visible by default. This enhancement aims to improve user experience by providing immediate access to the code editor.
  • Loading branch information
marklundin committed Jan 14, 2025
1 parent 353908e commit d1e6f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/src/docs-components/Playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const PlayGround: FC<PlaygroundProps> = ({
}) => {

const resizeRef = useRef<HTMLDivElement>(null);
const [showCodeEditor, setShowCodeEditor] = useState(false);
const [showCodeEditor, setShowCodeEditor] = useState(true);

return (
<EditorProvider initialCode={code} >
Expand Down

0 comments on commit d1e6f21

Please sign in to comment.