Files
medusa-store/packages/design-system/ui
Kasper Fabricius Kristensen a67a8e7e90 fix(ui): Fixed CodeBlock line number width (#5640)
**What**
- Fixes the width of lineNumbers in the CodeBlock component according to the widest number.
- Introduces a new prop on snippets that allows users to hide the copy button. Also updated docs to reflect this.

Before:
![image](https://github.com/medusajs/medusa/assets/45367945/07852c2e-434c-44df-93b7-4078148cb74f)

After:
<img width="742" alt="image" src="https://github.com/medusajs/medusa/assets/45367945/5ce845f7-b8c7-411c-abfb-fa03448aeb1a">

Closes #5639
2023-11-16 10:50:04 +00:00
..
2023-11-10 10:28:21 +01:00
2023-11-10 10:28:21 +01:00

Medusa logo

Medusa UI

Documentation | Website

Medusa's admin component library.

Medusa is released under the MIT license. Discord Chat Follow @medusajs

Getting Started

Installation

yarn add @medusajs/medusa-ui

Usage

import { Button } from "@medusajs/ui"

const App = () => <Button variant="primary">Hello World</Button>

Documentation

You can find the documentation for Medusa UI on the documentation site.