-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c78be0a
commit 91c0d7c
Showing
7 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,4 +48,5 @@ | |
.Indicator { | ||
background-color: rgb(40, 205, 65); | ||
border-radius: 3px; | ||
height: revert-layer !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...src/app/(public)/(content)/react/components/meter/demos/hero/css-modules/index.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.Track { | ||
width: 12rem; | ||
display: block; | ||
overflow: hidden; | ||
background-color: var(--color-gray-200); | ||
box-shadow: inset 0 0 0 1px var(--color-gray-200); | ||
height: 0.25rem; | ||
border-radius: 0.25rem; | ||
} | ||
|
||
.Indicator { | ||
display: block; | ||
background-color: var(--color-gray-500); | ||
transition: width 500ms; | ||
} |
13 changes: 13 additions & 0 deletions
13
docs/src/app/(public)/(content)/react/components/meter/demos/hero/css-modules/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import * as React from 'react'; | ||
import { Meter } from '@base-ui-components/react/meter'; | ||
import styles from './index.module.css'; | ||
|
||
export default function ExampleMeter() { | ||
return ( | ||
<Meter.Root value={80}> | ||
<Meter.Track className={styles.Track}> | ||
<Meter.Indicator className={styles.Indicator} /> | ||
</Meter.Track> | ||
</Meter.Root> | ||
); | ||
} |
2 changes: 2 additions & 0 deletions
2
docs/src/app/(public)/(content)/react/components/meter/demos/hero/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
'use client'; | ||
export { default as CssModules } from './css-modules'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters