mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 14:23:44 +02:00
Add nest endpoints and pages
This commit is contained in:
24
resources/scripts/components/admin/AdminCheckbox.tsx
Normal file
24
resources/scripts/components/admin/AdminCheckbox.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import Input from '@/components/elements/Input';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components/macro';
|
||||
import tw from 'twin.macro';
|
||||
|
||||
const Checkbox = styled(Input)`
|
||||
&& {
|
||||
${tw`border-neutral-500 bg-transparent`};
|
||||
|
||||
&:not(:checked) {
|
||||
${tw`hover:border-neutral-300`};
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export default ({ name }: { name: string }) => {
|
||||
return (
|
||||
<Checkbox
|
||||
name={'selectedItems'}
|
||||
value={name}
|
||||
type={'checkbox'}
|
||||
/>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user