wip: Updates to packages
This commit is contained in:
parent
1c81f46dee
commit
755c7395ba
45 changed files with 5268 additions and 22 deletions
13
packages/react/components/Control/index.mjs
Normal file
13
packages/react/components/Control/index.mjs
Normal file
|
@ -0,0 +1,13 @@
|
|||
import React from 'react'
|
||||
import { BulletIcon } from '@freesewing/react/components/Icon'
|
||||
|
||||
const scores = [1, 2, 3, 4, 5]
|
||||
|
||||
export const ControlScore = ({ control, color = 'base-content' }) =>
|
||||
control ? (
|
||||
<div className={`flex flex-row items-center text-${color}`}>
|
||||
{scores.map((score) => (
|
||||
<BulletIcon fill={control >= score ? true : false} className="w-6 h-6 -ml-1" key={score} />
|
||||
))}
|
||||
</div>
|
||||
) : null
|
Loading…
Add table
Add a link
Reference in a new issue