Skip to content

Commit

Permalink
fixes and package version update
Browse files Browse the repository at this point in the history
  • Loading branch information
alchemistgo87 committed Apr 18, 2023
1 parent c880a29 commit cfc44ba
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
30 changes: 16 additions & 14 deletions packages/@holaplexui-playground/pages/form.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Form, Icon } from '@holaplex/ui-library-react';
import { Form, Icon, Placement } from '@holaplex/ui-library-react';
import clsx from 'clsx';
import { watch } from 'fs';
import { useCallback, useState } from 'react';
Expand Down Expand Up @@ -207,20 +207,22 @@ export default function App() {
)}
/>
</Form.Label>

<Form.Checkbox
id='subscribe'
label='Subscribe newsletter'
<Form.Label
name='Subscribe newsletter'
placement={Placement.Right}
className='mt-5 text-xs'
/>
<Form.RadioButtonGroup
className='mt-5'
groupName='fruits'
items={[
{ id: 'apple', value: 'Apple', label: 'Apple' },
{ id: 'mango', value: 'Mango', label: 'Mango' }
]}
/>
>
<Form.Checkbox id='subscribe' />
</Form.Label>

<Form.RadioGroup className='mt-5'>
<Form.Label name='Apple' placement={Placement.Right}>
<Form.RadioGroup.Radio value='apple' name='fruits' />
</Form.Label>
<Form.Label name='Mango' placement={Placement.Right}>
<Form.RadioGroup.Radio value='Mango' name='fruits' />
</Form.Label>
</Form.RadioGroup>
</Form>
</div>
);
Expand Down
6 changes: 5 additions & 1 deletion packages/@holaplexui-playground/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ a {
}

.form-label {
@apply flex flex-col gap-1;
@apply gap-1;
}

.form-label-text {
Expand Down Expand Up @@ -140,3 +140,7 @@ a {
.dragdrop-preview-image {
@apply w-full h-48;
}

.form-radio-group {
@apply flex flex-col gap-2;
}
2 changes: 1 addition & 1 deletion packages/@holaplexui-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@holaplex/ui-library-react",
"author": "Holaplex Inc.",
"version": "0.15.0",
"version": "0.16.0",
"description": "Holaplex react ui library components",
"private": false,
"files": [
Expand Down

0 comments on commit cfc44ba

Please sign in to comment.